pkg-to-readme
v3.0.1
Published
Generate README.md from package.json
Downloads
4,650
Readme
pkg-to-readme
Generate README.md using package.json from command line.
Install
Install with npm
$ npm install pkg-to-readme -g
Usage
from Command line
$ pkg-to-readme
Options
-t, --template Path to template file. default: ~/.readme-genrc
-o, --output Path to output. default: ./README.md
-f, --force Force update
Example:
$ pkg-to-readme --template path/to/template.md --output path/to/README.md
from Node.js
pkg-to-readme is a pure esm module.
import { pkg2readme } from "pkg-to-readme";
readmeGen({
cwd: __dirname,
output: outputPath,
template: path.join(__dirname, "./fixture/README.ejs")
}).then(() => {
// ok
});
Running tests
Install dev dependencies:
$ npm test
License
MIT © azu