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/renovate@ckatzorke/renovate@codexfield/isomorphic-git@lix-js/client@moredhel/renovate@protocol.land/isomorphic-gitmyrenobatebotmyrenovatebotozonep-isomorphic-gitrootnovateng-renovaterenovate-csmgit-essentialsftl-renovate@sosuisen/isomorphic-git@amrc-factoryplus/git-client@noam-codefresh/isomorphic-git@noteshub/isomorphic-git@emedvedev/renovate@davidqhr/isomorphic-git@danieldx/isomorphic-git@cythral/renovate@jazcash/isomorphic-git@omneedia/isomorphic-git
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