Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cli-help-from-readme

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-help-from-readme

Generate a CLI help message from a README.md. Default is to use the default README of the package

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Keywords

FAQs

Package last updated on 07 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc