clean-git-ref
[![Build Status](https://travis-ci.org/TheSavior/clean-git-ref.svg)](https://travis-ci.org/TheSavior/clean-git-ref)
Last updated 11 years ago by eliwhite .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ npm 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 (8 years ago)

4 Versions

  • 2.0.1                                ...           8 years ago
  • 1.0.3                                ...           11 years ago
  • 1.0.2                                ...           11 years ago
  • 1.0.1                                ...           11 years ago
Maintainers (1)
Downloads
Total 13
Today 0
This Week 5
This Month 6
Last Day 3
Last Week 0
Last Month 3
Dependencies (0)
None
Dev Dependencies (9)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE