npm.io
2.0.1 • Published 7 years ago

clean-git-ref v2.0.1

Weekly downloads
81,712
License
Apache-2.0
Repository
github
Last release
7 years ago

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');
isomorphic-git-crossisomorphic-git-fastrenovate@everything-registry/sub-chunk-1333isomorphic-git-dmisomorphic-git@xbenjii/renovate@wp-playground/blueprints@wp-playground/cli@wp-playground/client@wp-playground/storage@thetechtrap/dgit@zalastax/nolb-cle@zsylvia/renovateftl-renovatemyrenobatebotmyrenovatebotozonep-isomorphic-gitrootnovateng-renovaterenovate-csmgit-essentials@jazcash/isomorphic-git@noam-codefresh/isomorphic-git@noteshub/isomorphic-git@lix-js/client@omneedia/isomorphic-git@picohz/isomorphic-git@protocol.land/isomorphic-git@ckatzorke/renovate@amrc-factoryplus/git-client@codexfield/isomorphic-git@cythral/renovate@danieldx/isomorphic-git@davidqhr/isomorphic-git@sosuisen/isomorphic-git@moredhel/renovate@emedvedev/renovate
2.0.1

7 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

contact@npm.io