New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

man-modules

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

man-modules

Generate man pages for all top-level node_modules

latest
Source
npmnpm
Version
0.1.2
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

man-modules

Generate man pages for all of your node modules

NPM

Installing

npm install man-modules

You can also generate man pages for all globally installed man-modules if installed globally.

Usage


$ man-modules

Or add it for postinstall in your package.json

  "main": "index.js",
  "scripts": {
    "postinstall": "man-modules && node app.js",

Make sure to add the new path to your ~.bashrc after running.


echo "MANPATH=:/home/meandave/Code/man-modules/node_modules/.man; export MANPATH" >> ~/.bashrc'

This will be printed into the terminal after running man-modules.

manpage numbers

The numbers generated for each manpage does not currently mimmick manpage functionality entirely.

On unix systems these stand for:

  • General commands
  • System calls
  • C library functions
  • Special files (usually devices, those found in /dev) and drivers
  • File formats and conventions
  • Games and screensavers
  • Miscellanea
  • System administration commands and daemons

Where as here, we are simply incrementing for each readme packaged with the project to ensure no loss of information.

I would like to find a more standard way to handle this. Possibly checking for a bin key in the package.json to signify an executable. Or simple concatting these files together into one big modulename.1 file.

If you have any suggestions for this please open an issue!

Thanks

Much appreciation to @chrisdickinson & @justinabrahms for the inspiration.

LICENSE

MIT

Keywords

manpage

FAQs

Package last updated on 20 Aug 2014

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