Require JavaScript module from Gist URL
NOTE only 1 file per gist with correct type 'application/javascript'
$ npm install gist-require
// link => https://gist.github.com/sohje/73a80333911026a1be25
module.exports = () => {console.log('Hello from Gist')}
var gistr = require('gist-require')
var url = 'https://gist.github.com/sohje/73a80333911026a1be25'
gistr(url, (err, data) => {
data() //=> Hello from Gist
})
MIT © Nikolay Spiridonov