npm.io
3.0.1 • Published 2 years agoCLI

pkg-to-readme

Licence
MIT
Version
3.0.1
Deps
3
Size
5 kB
Vulns
0
Weekly
0
Stars
2

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

Thanks

Base on akameco/readme-gen: README generator for node.js.

@akameco