github-readme

Fetch README from GitHub

Usage no npm install needed!

<script type="module">
  import githubReadme from 'https://cdn.skypack.dev/github-readme';
</script>

README

npm

github-readme

Build Status Dependency Status

Fetch README from GitHub.

Example

> githubReadme('git', 'git', function (err, readme) {
>   console.log(readme.slice(0, 300));
> })
////////////////////////////////////////////////////////////////

    Git - the stupid content tracker

////////////////////////////////////////////////////////////////

"git" can mean anything, depending on your mood.

 - random three-letter combination that is pronounceable, and not
   actually used

API

githubReadme(user, repo, cb(err, readme))

Fetches README from GitHub and returns it as a string. The filename is detected automatically.

Install

npm install github-readme

License

MIT