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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.1
    506,360
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.1
    506,360
  • 1.0.3
    192
  • 1.0.2
    8
  • 1.0.1
    8

Package Sidebar

Install

npm i clean-git-ref

Weekly Downloads

506,568

Version

2.0.1

License

Apache-2.0

Unpacked Size

2.33 kB

Total Files

3

Last publish

Collaborators

  • eliwhite