Nature Preceded Machines
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    nerf-gunpublic

    nerf-gun

    A tiny utility that returns nerf darts from URLs for npm.

    Usage

    Give it a URL and you'll get a "nerf dart":

    var nerfGun = require('nerf-gun')
     
    //
    // All of these return the same thing
    // '//registry.npmjs.org/'
    //
    nerfGun('http://registry.npmjs.org')
    nerfGun('http://registry.npmjs.org')
    nerfGun('http://registry.npmjs.org/some-package')
    nerfGun('http://registry.npmjs.org/some-package?write=true')
    nerfGun('http://user:pass@registry.npmjs.org/some-package?write=true')
    nerfGun('http://registry.npmjs.org/#random-hash')
    nerfGun('http://registry.npmjs.org/some-package#random-hash')
    Contributors Charlie Robbins, Forrest Norvell
    LICENSE

    Copyright (c) 2014, Charlie Robbins and Contributors. Adapted under the ISC License from npm and npm-registry-client

    install

    npm i nerf-gun

    Downloadsweekly downloads

    4

    version

    1.0.1

    license

    ISC

    repository

    githubgithub

    last publish

    collaborators

    • avatar
    • avatar
    • avatar