1.0.0 • Published 1 year ago

cli-help-from-readme v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

cli-help-from-readme

This will generate a CLI help message using a README.md or readme.md file placed at the same level as you executable, e.g. cli.js. It will return the readme message stripped of any markdown formatting.

Install

npm install --save cli-help-from-readme

Usage

    import { getHelpMessage } from './index.js';
    // Returns a string with the help message 
    let helpMessage = getHelpMessage(); 

    // Or read a specific file
    let helpMessage = getHelpMessage('path/to/readme.md');

    console.log(helpMessage);

Licence

MIT © Dennis Iversen

1.0.0

1 year ago