clean-git-ref
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/clean-git-ref package

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');

Readme

Keywords

none

Package Sidebar

Install

npm i clean-git-ref

Weekly Downloads

505,860

Version

2.0.1

License

Apache-2.0

Unpacked Size

2.33 kB

Total Files

3

Last publish

Collaborators

  • eliwhite