npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

get-package-readme

1.4.0

@feross

npmHomeRepoSnykSocket
Downloads:1
$ npm install get-package-readme
DailyWeeklyMonthlyYearly

get-package-readme travis npm downloads javascript style guide

Get the GitHub readme for an npm package

install

npm install get-package-readme

usage

var getPackageReadme = require('get-package-readme')

getPackageReadme('webtorrent', function (err, readme) {
  if (err) throw err
  console.log(readme)
})

why this instead of readme-getter?

get-package-readme (this package) gets an npm packages' GitHub readme (from the master branch) and falls back to the npm readme if it exists. If you want just the npm readme, you should use readme-getter.

license

MIT. Copyright (c) Feross Aboukhadijeh.