Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
finom committed Apr 9, 2017
1 parent f7b68a4 commit eb315c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ The tool allows to embed code from Github on a webpage.

### CommonJS
```
npm install --save github-embed
npm install --save github-embed babel-polyfill
```

```js
require("babel-polyfill");
const githubEmbed = require('github-embed');
githubEmbed('.element', settings);
```
Expand All @@ -23,6 +24,7 @@ CSS is placed at **node_modules/github-embed/npm/css/github-embed.css**.

Bundled (downloadable) version and the demo of the tool lives at [gh-pages branch](https://github.com/finom/github-embed/tree/gh-pages).
```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.23.0/polyfill.min.js"></script>
<script src="github-embed.min.js"></script>
<script>
githubEmbed('.element', settings);
Expand Down

0 comments on commit eb315c8

Please sign in to comment.