Clean an input string into a usable git ref
npm install clean-git-ref
Clean an input string into a usable git ref.
For more reference, read https://git-scm.com/docs/git-check-ref-format
``sh`
$ npm install clean-git-ref --save-dev
var cleanGitRef = require('clean-git-ref');assert.strictEqual(cleanGitRef.clean('bad git ref formats/'), 'bad-git-ref-formats');
``