https://github.com/yinyanfr/args-md
The CLI tool that output the help message of args as markdown.
https://github.com/yinyanfr/args-md
args cli documentation documentation-generator documentation-tool markdown
Last synced: 6 months ago
JSON representation
The CLI tool that output the help message of args as markdown.
- Host: GitHub
- URL: https://github.com/yinyanfr/args-md
- Owner: yinyanfr
- License: mit
- Created: 2023-04-23T17:52:35.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-24T14:03:59.000Z (about 3 years ago)
- Last Synced: 2025-02-03T11:14:51.504Z (about 1 year ago)
- Topics: args, cli, documentation, documentation-generator, documentation-tool, markdown
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/args-md
- Size: 71.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# args-md
[](https://www.npmjs.com/package/args-md)
[](https://github.com/yinyanfr/args-md/blob/main/LICENSE)

[](https://github.com/yinyanfr/args-md/releases/latest)
English | [简体中文](https://github.com/yinyanfr/args-md/blob/main/README.zh-Hans.md)
The CLI tool that output the help message of [args](https://www.npmjs.com/package/args) as markdown.
## :green_book: Quick Start
### :wrench: CLI
```bash
your_cli help | npx args-md > cli.md
```
[Demo](https://github.com/yinyanfr/args-md/blob/main/src/tests/seeds/help.md)
### :book: Library
```typescript
import { parseHelp, formatHelp } from 'args-md';
// the array of string of the help text grouped by line
const contents: string[] = [];
const help = parseHelp(contents);
const md = formatHelp(contents);
```
You can find the type definitions of `help` in [`src/global.d.ts`](https://github.com/yinyanfr/args-md/blob/main/src/global.d.ts).