{"id":16244588,"url":"https://github.com/indexzero/nerf-gun","last_synced_at":"2025-07-06T08:35:41.788Z","repository":{"id":22226194,"uuid":"25559140","full_name":"indexzero/nerf-gun","owner":"indexzero","description":"A tiny utility that returns nerf darts from URLs for npm.","archived":false,"fork":false,"pushed_at":"2025-04-16T05:57:18.000Z","size":43,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-06-15T00:39:57.876Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/indexzero.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-22T03:16:42.000Z","updated_at":"2025-04-16T05:57:21.000Z","dependencies_parsed_at":"2022-08-05T16:16:44.495Z","dependency_job_id":null,"html_url":"https://github.com/indexzero/nerf-gun","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/indexzero/nerf-gun","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indexzero%2Fnerf-gun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indexzero%2Fnerf-gun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indexzero%2Fnerf-gun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indexzero%2Fnerf-gun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/indexzero","download_url":"https://codeload.github.com/indexzero/nerf-gun/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indexzero%2Fnerf-gun/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263871390,"owners_count":23522855,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T14:19:48.975Z","updated_at":"2025-07-06T08:35:41.782Z","avatar_url":"https://github.com/indexzero.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"nerf-gun\n========\n\nA tiny utility that returns nerf darts from URLs for npm.\n\n## Usage\n\nGive it a URL and you'll get a \"nerf dart\":\n\n``` js\nconst nerfGun = require('nerf-gun');\n\n//\n// All of these return the same thing\n// '//registry.npmjs.org/'\n//\nnerfGun('http://registry.npmjs.org')\nnerfGun('http://registry.npmjs.org')\nnerfGun('http://registry.npmjs.org/some-package')\nnerfGun('http://registry.npmjs.org/some-package?write=true')\nnerfGun('http://user:pass@registry.npmjs.org/some-package?write=true')\nnerfGun('http://registry.npmjs.org/#random-hash')\nnerfGun('http://registry.npmjs.org/some-package#random-hash')\n```\n\n##### Contributors [Charlie Robbins], [Forrest Norvell]\n##### LICENSE\n\nCopyright (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)\n\nCopyright (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)\n\n [Charlie Robbins]: https://github.com/indexzero\n [Forrest Norvell]: https://github.com/othiym23\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findexzero%2Fnerf-gun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Findexzero%2Fnerf-gun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findexzero%2Fnerf-gun/lists"}