clean-git-ref
Clean an input string into a usable git ref
Last updated 7 years ago by eliwhite .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install clean-git-ref 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.0.1                                ...           latest (7 years ago)

4 Versions

  • 2.0.1                                ...           7 years ago
  • 1.0.3                                ...           10 years ago
  • 1.0.2                                ...           10 years ago
  • 1.0.1                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (9)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |