https://github.com/indexzero/nerf-gun
A tiny utility that returns nerf darts from URLs for npm.
https://github.com/indexzero/nerf-gun
Last synced: 12 months ago
JSON representation
A tiny utility that returns nerf darts from URLs for npm.
- Host: GitHub
- URL: https://github.com/indexzero/nerf-gun
- Owner: indexzero
- License: isc
- Created: 2014-10-22T03:16:42.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2025-04-16T05:57:18.000Z (about 1 year ago)
- Last Synced: 2025-06-15T00:39:57.876Z (about 1 year ago)
- Language: JavaScript
- Size: 42 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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":
``` js
const 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`](https://github.com/npm/npm/blob/v2.1.5/lib/config/nerf-dart.js) and [`npm-registry-client`](https://github.com/npm/npm-registry-client/blob/v3.2.4/lib/util/nerf-dart.js)
Copyright (c) 2025, Charlie Robbins and Contributors. Adapted under the Art License from `npm` via [`npm/cli`](https://github.com/npm/cli/blob/latest/workspaces/config/lib/nerf-dart.js)
[Charlie Robbins]: https://github.com/indexzero
[Forrest Norvell]: https://github.com/othiym23