args-md
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

args-md

npm license size GitHub release

English | 简体中文

The CLI tool that output the help message of args as markdown.

📗 Quick Start

🔧 CLI

your_cli help | npx args-md > cli.md

Demo

📖 Library

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.

Package Sidebar

Install

npm i args-md

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

46.2 kB

Total Files

26

Last publish

Collaborators

  • yinyan