gist-require

1.0.3 • Public • Published

gist-require Build Status

Require JavaScript module from Gist URL

NOTE only 1 file per gist with correct type 'application/javascript'

Install

$ npm install gist-require

Usage

example gist

// link => https://gist.github.com/sohje/73a80333911026a1be25
module.exports = () => {console.log('Hello from Gist')}

Run example

var gistr = require('gist-require')
var url = 'https://gist.github.com/sohje/73a80333911026a1be25'
gistr(url, (err, data) => {
    data() //=> Hello from Gist
})

License

MIT © Nikolay Spiridonov

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    1
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i gist-require

Weekly Downloads

1

Version

1.0.3

License

MIT

Last publish

Collaborators

  • sohje