Generate a README.md from package.json contents
This is a Node.js module available through:
- the github repository .
It can be installed using the
npm
or
yarn
command line tools.
npm install git+https://github.com/cionz0/package-json-to-readme --global
# Write to stdout
readme package.json
# Pipe output into a new file
readme package.json > README.md
# Add a Travis badge
readme package.json --travis
# Run tests and add their output
readme package.json --tests
# Do it all
readme package.json --tests --travis > README.md
# If your package has an example.sh or example.js file, it will be used to
# generate a usage section like this one.
# If your example.js has a require("./") statement, the relative path will be
# replaced with the package name.
npm install
npm test
- github-url-to-object: Extract user, repo, and other interesting properties from GitHub URLs
- hogan.js: A mustache compiler.
- strip-ansi: Strip ANSI escape codes
- yargs: Light-weight option parsing with an argv hash. No optstrings attached.
- mocha: simple, flexible, fun test framework
- nixt: Simple and powerful testing for command-line apps
- standard: JavaScript Standard Style
- semantic-release: Automated semver compliant package publishing
MIT