{"_id":"clean-git-ref","_rev":"4170317","name":"clean-git-ref","description":"Clean an input string into a usable git ref","dist-tags":{"latest":"2.0.1"},"maintainers":[{"name":"eliwhite","email":"npm@eli-white.com"}],"time":{"modified":"2026-03-01T21:13:37.000Z","created":"2016-04-04T05:23:31.480Z","2.0.1":"2019-01-18T18:39:29.596Z","1.0.3":"2016-04-04T05:37:26.693Z","1.0.2":"2016-04-04T05:30:19.690Z","1.0.1":"2016-04-04T05:23:31.480Z"},"users":{},"author":{"name":"Eli White","email":"github@eli-white.com"},"repository":{"type":"git","url":"git+https://github.com/TheSavior/clean-git-ref.git"},"versions":{"2.0.1":{"name":"clean-git-ref","description":"Clean an input string into a usable git ref","version":"2.0.1","license":"Apache-2.0","author":{"name":"Eli White","email":"github@eli-white.com"},"main":"lib/index.js","scripts":{"build":"babel src -d lib","style":"eslint src test && jscs src test","pretest":"npm run style","test":"mocha","posttest":"npm run build"},"devDependencies":{"babel-cli":"^6.6.5","babel-eslint":"^6.0.2","babel-preset-es2015":"^6.6.0","babel-register":"^6.7.2","chai":"^3.5.0","eslint":"^3.0.0","jscs":"^3.0.6","mocha":"^3.0.1","wealthfront-javascript":"^3.0.1"},"repository":{"type":"git","url":"git+https://github.com/TheSavior/clean-git-ref.git"},"gitHead":"bf3c8afc8032bcdc6a53634c18b601dc6df478fb","bugs":{"url":"https://github.com/TheSavior/clean-git-ref/issues"},"homepage":"https://github.com/TheSavior/clean-git-ref#readme","_id":"clean-git-ref@2.0.1","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"eliwhite","email":"npm@eli-white.com"},"dist":{"shasum":"dcc0ca093b90e527e67adb5a5e55b1af6816dcd9","size":1138,"noattachment":false,"key":"/clean-git-ref/-/clean-git-ref-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/clean-git-ref/download/clean-git-ref-2.0.1.tgz"},"maintainers":[{"name":"eliwhite","email":"npm@eli-white.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/clean-git-ref_2.0.1_1547836769489_0.18474244329765188"},"_hasShrinkwrap":false,"publish_time":1547836769596,"_cnpm_publish_time":1547836769596,"_cnpmcore_publish_time":"2021-12-16T15:36:36.621Z"},"1.0.3":{"name":"clean-git-ref","description":"Clean an input string into a usable git ref","version":"1.0.3","license":"Apache-2.0","author":{"name":"Eli White","email":"github@eli-white.com"},"files":["lib"],"main":"lib/index.js","scripts":{"build":"babel src -d lib","style":"eslint src test && jscs src test","pretest":"npm run style","test":"mocha","posttest":"npm run build"},"devDependencies":{"babel-cli":"6.6.5","babel-eslint":"6.0.2","babel-preset-es2015":"6.6.0","babel-register":"^6.7.2","chai":"3.5.0","eslint":"2.6.0","jscs":"2.11.0","mocha":"2.4.5","wealthfront-javascript":"2.4.1"},"repository":{"type":"git","url":"git+https://github.com/TheSavior/clean-git-ref.git"},"gitHead":"249e45982aa090bb233514f440700d1d102bf5a0","bugs":{"url":"https://github.com/TheSavior/clean-git-ref/issues"},"homepage":"https://github.com/TheSavior/clean-git-ref#readme","_id":"clean-git-ref@1.0.3","_shasum":"5325dc839eab01c974ae0e97f5734782750f88ec","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.10.0","_npmUser":{"name":"eliwhite","email":"npm@eli-white.com"},"dist":{"shasum":"5325dc839eab01c974ae0e97f5734782750f88ec","size":1001,"noattachment":false,"key":"/clean-git-ref/-/clean-git-ref-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/clean-git-ref/download/clean-git-ref-1.0.3.tgz"},"maintainers":[{"name":"eliwhite","email":"npm@eli-white.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/clean-git-ref-1.0.3.tgz_1459748244291_0.8955562973860651"},"directories":{},"publish_time":1459748246693,"_hasShrinkwrap":false,"_cnpm_publish_time":1459748246693,"_cnpmcore_publish_time":"2021-12-16T15:36:36.971Z"},"1.0.2":{"name":"clean-git-ref","description":"Clean an input string into a usable git ref","version":"1.0.2","license":"Apache-2.0","author":{"name":"Eli White","email":"github@eli-white.com"},"files":["lib"],"main":"lib/index.js","scripts":{"build":"babel src -d lib","style":"eslint src test && jscs src test","pretest":"npm run style","test":"mocha","posttest":"npm run build"},"devDependencies":{"babel-cli":"6.6.5","babel-eslint":"6.0.2","babel-preset-es2015":"6.6.0","babel-register":"^6.7.2","chai":"3.5.0","eslint":"2.6.0","jscs":"2.11.0","mocha":"2.4.5","wealthfront-javascript":"2.4.1"},"repository":{"type":"git","url":"git+https://github.com/TheSavior/clean-git-ref.git"},"gitHead":"fcd60f67dffe902c0438a03a045f780dcb74e493","bugs":{"url":"https://github.com/TheSavior/clean-git-ref/issues"},"homepage":"https://github.com/TheSavior/clean-git-ref#readme","_id":"clean-git-ref@1.0.2","_shasum":"a79ae22646cc8cbde9e41cb40180f1ed576686d5","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.10.0","_npmUser":{"name":"eliwhite","email":"npm@eli-white.com"},"dist":{"shasum":"a79ae22646cc8cbde9e41cb40180f1ed576686d5","size":987,"noattachment":false,"key":"/clean-git-ref/-/clean-git-ref-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/clean-git-ref/download/clean-git-ref-1.0.2.tgz"},"maintainers":[{"name":"eliwhite","email":"npm@eli-white.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/clean-git-ref-1.0.2.tgz_1459747817251_0.8871100482065231"},"directories":{},"publish_time":1459747819690,"_hasShrinkwrap":false,"_cnpm_publish_time":1459747819690,"_cnpmcore_publish_time":"2021-12-16T15:36:37.212Z"},"1.0.1":{"name":"clean-git-ref","version":"1.0.1","license":"Apache-2.0","author":{"name":"Eli White","email":"github@eli-white.com"},"files":["lib"],"main":"lib/index.js","scripts":{"build":"babel src -d lib","style":"eslint src test && jscs src test","pretest":"npm run style","test":"mocha","posttest":"npm run build"},"devDependencies":{"babel-cli":"6.6.5","babel-eslint":"6.0.2","babel-preset-es2015":"6.6.0","babel-register":"^6.7.2","chai":"3.5.0","eslint":"2.6.0","jscs":"2.11.0","mocha":"2.4.5","wealthfront-javascript":"2.4.1"},"repository":{"type":"git","url":"git+https://github.com/TheSavior/clean-git-ref.git"},"gitHead":"f73e0ccbe836f39eb2eb2b775a62185c46aadb3e","description":"[![Build Status](https://travis-ci.org/TheSavior/clean-git-ref.svg)](https://travis-ci.org/TheSavior/clean-git-ref)","bugs":{"url":"https://github.com/TheSavior/clean-git-ref/issues"},"homepage":"https://github.com/TheSavior/clean-git-ref#readme","_id":"clean-git-ref@1.0.1","_shasum":"5f3234eb2c46418f8a01d9af26a92bb11b350113","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.10.0","_npmUser":{"name":"eliwhite","email":"npm@eli-white.com"},"dist":{"shasum":"5f3234eb2c46418f8a01d9af26a92bb11b350113","size":979,"noattachment":false,"key":"/clean-git-ref/-/clean-git-ref-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/clean-git-ref/download/clean-git-ref-1.0.1.tgz"},"maintainers":[{"name":"eliwhite","email":"npm@eli-white.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/clean-git-ref-1.0.1.tgz_1459747409287_0.9225431026425213"},"directories":{},"publish_time":1459747411480,"_hasShrinkwrap":false,"_cnpm_publish_time":1459747411480,"_cnpmcore_publish_time":"2021-12-16T15:36:37.477Z"}},"readme":"# clean-git-ref\n\n[![Build Status](https://travis-ci.org/TheSavior/clean-git-ref.svg)](https://travis-ci.org/TheSavior/clean-git-ref)\n\nClean an input string into a usable git ref. \n\nFor more reference, read https://git-scm.com/docs/git-check-ref-format\n\n## Installation\n\n```sh\n$ npm install clean-git-ref --save-dev\n```\n\n## API Usage\n\n### clean(string input) -> string output\n```\nvar cleanGitRef = require('clean-git-ref');\n\nassert.strictEqual(cleanGitRef.clean('bad git ref formats/'), 'bad-git-ref-formats');\n```\n","_attachments":{},"homepage":"https://github.com/TheSavior/clean-git-ref#readme","bugs":{"url":"https://github.com/TheSavior/clean-git-ref/issues"},"license":"Apache-2.0"}