nuǝW pǝuoᴉʇᴉsoԀ ʎlǝʌᴉʇɐƃǝN
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    gist-requirepublic

    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

    install

    npm i gist-require

    Downloadsweekly downloads

    2

    version

    1.0.3

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar