Socket
Book a DemoInstallSign in
Socket

nerf-gun

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nerf-gun

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

2.0.0
latest
Source
npmnpm
Version published
Weekly downloads
3
-82.35%
Maintainers
3
Weekly downloads
 
Created
Source

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":

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 and npm-registry-client

Copyright (c) 2025, Charlie Robbins and Contributors. Adapted under the Art License from npm via npm/cli

Keywords

url

FAQs

Package last updated on 16 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.