package
Clean an input string into a usable git ref
npm install clean-git-refGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Clean an input string into a usable git ref.
For more reference, read https://git-scm.com/docs/git-check-ref-format
$ npm install clean-git-ref --save-devvar cleanGitRef = require('clean-git-ref');
assert.strictEqual(cleanGitRef.clean('bad git ref formats/'), 'bad-git-ref-formats');Estimated unpacked size across 1 packages.
2.3 kB
Includes dependencies.