Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

clean-git-ref

2.0.1 • Public • Published

clean-git-ref

Build Status

Clean an input string into a usable git ref.

For more reference, read https://git-scm.com/docs/git-check-ref-format

Installation

$ npm install clean-git-ref --save-dev

API Usage

clean(string input) -> string output

var cleanGitRef = require('clean-git-ref');

assert.strictEqual(cleanGitRef.clean('bad git ref formats/'), 'bad-git-ref-formats');

Keywords

none

Install

npm i clean-git-ref

DownloadsWeekly Downloads

47,830

Version

2.0.1

License

Apache-2.0

Unpacked Size

2.33 kB

Total Files

3

Last publish

Collaborators

  • avatar