New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@olian/github-readme

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@olian/github-readme

A custom element that renders the readme of a github repository

Source
npmnpm
Version
1.0.5
Version published
Weekly downloads
1
-91.67%
Maintainers
1
Weekly downloads
 
Created
Source

github-readme

A custom element that renders the readme of a github repository

<script src="https://unpkg.com/@olian/github-readme"></script>
<github-readme
    user="olian04"
    repository="github-readme"
    ></github-readme>

Click here to see this page rendered using github-readme :smile:

Or click here to see a multi page demo in a jsfiddle

Install

npm install @olian/github-readme

Advanced

<github-readme
    user="olian04"
    repository="github-readme"
    branch="master"
    index="/README.md"
    navigation="full"
    bookmarks="[License](/LICENSE);[Demo](/index.html)"
    style=""
    id=""
    class=""
    ></github-readme>
propertydefaultdescription
userThe name of the github user that owns the repository
repositoryThe name of the github repository you want to display
branchmasterThe name of the git branch you want to display
index/README.mdThe path to the index file.
navigationfullnone will hide the navigation bar. history will only show the back, forward and reload buttons. full will show the history navigation as well as a bookmarks row.
bookmarksOptional bookmarks provided in the form of a simecolon separated string of markdown links. [TITLE](LINK);[TITLE](LINK);[TITLE](LINK)
styleOptional styles passed down to the top most element of the component.
idOptional id passed down to the top most element of the component.
classOptional class passed down to the top most element of the component.

Note: github-readme uses unauthenticated requests to the github api and is there for limited by its rate limiting rules.

For unauthenticated requests, the rate limit allows for up to 60 requests per hour. Unauthenticated requests are associated with the originating IP address, and not the user making requests.

License

See Licence

TODO:

  • Mobile support
  • Add cache for offline browsing (this will eliminate the problems with rate limits on the github api)
  • Syntax highlighting for codeblocks

Keywords

github

FAQs

Package last updated on 04 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts