{"_id":"is-git-branch-name-valid","_rev":"2-1d3f43d753715f135684f25e0fb15139","name":"is-git-branch-name-valid","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"is-git-branch-name-valid","version":"1.0.0","description":"Check that a git branch name is well formed","license":"MIT","author":{"name":"Vincent Weevers"},"scripts":{"test":"standard && nyc node test.js"},"dependencies":{"is-git-ref-name-valid":"^1.0.0"},"devDependencies":{"nyc":"^15.1.0","standard":"^16.0.3","tape":"^5.0.1"},"repository":{"type":"git","url":"git+https://github.com/vweevers/is-git-branch-name-valid.git"},"homepage":"https://github.com/vweevers/is-git-branch-name-valid","keywords":["branch","git","refname","validate"],"engines":{"node":">=10"},"gitHead":"132894740504ea6e5a55347e2097fa6ebda81cff","bugs":{"url":"https://github.com/vweevers/is-git-branch-name-valid/issues"},"_id":"is-git-branch-name-valid@1.0.0","_nodeVersion":"12.11.1","_npmVersion":"6.11.3","_npmUser":{"name":"vweevers","email":"dev@vincentweevers.nl"},"maintainers":[{"name":"vweevers","email":"dev@vincentweevers.nl"}],"dist":{"integrity":"sha512-NVYz08NbLUFm5r6h+lgwkySCgFQHy4KPdTCY0aRVxR7lf61790GNNfPr/6/FqErcKCv8KC3o5zRL7mcBCwFv8g==","shasum":"caa617d56d4f50aae2d3a2b3df9b7eb8d115117f","tarball":"https://registry.npmjs.org/is-git-branch-name-valid/-/is-git-branch-name-valid-1.0.0.tgz","fileCount":4,"unpackedSize":3167,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfwqbwCRA9TVsSAnZWagAAnK4QAIqFd4YQgjFaLOwNKJlS\nl9WPby0N94D2/LdYcMutp9eiz8ses4FfNF3qH1O2TylZp7I4d/CSLxuoO4US\nezjnBTED4aVh8pQdXslNsaTEH00iW+2JK7/ExIh+CQqxsDsIIG2q+ALfyE4Q\n86itKVNd8vYl7mg9jGBDsGDEaVemDtbmxWB+kjy/RQ4d58wSiGFXXzRWePc0\nangbQv8senWaG28ACYcopEsOvAooLQbA8I6drLN5pKupQ40+ATk5N4IcNthZ\nDsz3iKw5xfU+ZBvX7wGKh+H9DQklNvRQnc97PNVJLB/yWkN/JHB5f/kzsZhM\nVk8uWvWsl30JSvKPTyQ1ZR+ZNG7kB22fU2tvZRqGlwnX6ttbuHiyvy4pRmlI\nbOm1XgxSkRadhrq//modBUNAOugFkAwz3pKFZTPAqYeYJOqgnbpr15wjHHWf\nAlOUMfPEtcL8sp64lIzgvi0fgA0os+0M2G6BpDe8hFY41iD2xyH8HBuBZEpd\nBYfFwp3QTJ3QN3gP9L5xi983ypPWpe7WF5N5t/zUkKYz4sGrwx9k0u4MjJat\n+1n/6XBfqSpJ+gqInlHzV+YCSJ7fpCBsxhP5xHJlto2fuw16sivv7c75+P8m\nqCCpMeCYSy8LMnv6D4j5rAEY71KvrwAz/XSGc/Dvq/wXHkaJs0lU7u/1w9B1\nRZI2\r\n=VTEP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID80iC/EQGOHfwNwTBtP7fOUMaF2PFZ9XxAoVTa7QksqAiEA1HAgNCnxThPqx1bsZCCPyOqHqTs+wVEmQPV97c3c3oY="}]},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-git-branch-name-valid_1.0.0_1606592240138_0.4546087080895742"},"_hasShrinkwrap":false},"1.0.1":{"name":"is-git-branch-name-valid","version":"1.0.1","description":"Check that a git branch name is well formed","license":"MIT","author":{"name":"Vincent Weevers"},"scripts":{"test":"standard && nyc node test.js"},"dependencies":{"is-git-ref-name-valid":"^1.0.0"},"devDependencies":{"nyc":"^15.1.0","standard":"^16.0.3","tape":"^5.0.1"},"repository":{"type":"git","url":"git+https://github.com/vweevers/is-git-branch-name-valid.git"},"homepage":"https://github.com/vweevers/is-git-branch-name-valid","keywords":["branch","git","refname","validate"],"engines":{"node":">=10"},"gitHead":"e28ac51973f51d47700f3247141a1673dd240123","bugs":{"url":"https://github.com/vweevers/is-git-branch-name-valid/issues"},"_id":"is-git-branch-name-valid@1.0.1","_nodeVersion":"12.11.1","_npmVersion":"6.11.3","_npmUser":{"name":"vweevers","email":"dev@vincentweevers.nl"},"maintainers":[{"name":"vweevers","email":"dev@vincentweevers.nl"}],"dist":{"integrity":"sha512-Nk8kX2jXDpFm1Y2RAe7OIx61Xnb61ji+N6w5OjEgUBnz5RKi7w5hC8GvTJABj7djEmIdo3svBvo6clW4loU4qg==","shasum":"4199f3a48d1baa9c5d983929be2f67913bc65282","tarball":"https://registry.npmjs.org/is-git-branch-name-valid/-/is-git-branch-name-valid-1.0.1.tgz","fileCount":4,"unpackedSize":3182,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfwqeECRA9TVsSAnZWagAA6rUP/jB/jGrtopEfOt380MYu\n+69L5oazdXRK7MzQ+EAeOMOwyUu525TPZd5w15Rg+6Znm4TFuHanBYTlgk9o\nqhQkGS1Lk39hVslaLNNIbP1zogANPxV7s/PVP6YONNA4kTZKePYdBl6sMRKe\nY5LwIyyKBaiOSjuQOccnm+0gUwS4b7MjA0qaxW/6NSWpqtssIAHFMGVOrAtC\nTHOzClEHt3oLHIKuNvx9jLDroKJpMivDk7n7bMjpTDUM4ZRFIa7eRq+a2de4\nR1j2qPB1077IJGX1yLhAHQxGQNF4f8S0L/Q0Cfw3zCCWPbyioTqA81nR5hWn\nQ+EUAtRMfNYAmr1zqzC0dPq91LVHe1tD5CJpyV7tTTyAkN5oTpCYIeF0KQm8\n7avIb4ZmetTbsVttlu/syeQah99ZcTJHN0GaD4KaJ1yvNSvMdieers1/nh0o\n2u7VZBm9Ke+x4zQRHtv5CRTrWD4TsPZ2d1qUrmlheosekMWnVe3NFPkK2PUg\ndVkC7ZOApCAN+7/ZV31zjnDU88dMoV4zY29A3mMwuQN83Yz1anehKLcYi1y1\nuw/9KUHyyhpGNmVNu5RiC1e4giSV6UNs3B89OHNudAhwvQkbG7JarTUXkO6D\neUCrRsfw0PxoX4aGTMQrtZJlwfsIRe/2XJdFaRVoxa+LuvlrKUUCKeo8yvLv\nZyHc\r\n=rrYO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG8d401uK/xkH0eyN7G2Sxvx4kCG7/do+MOTEkOrw1EvAiBRkHbf2xTvhhCfeP2y/ZgMUkLDJimOaMCBlFMi1ZYNxQ=="}]},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-git-branch-name-valid_1.0.1_1606592388288_0.3652203090822861"},"_hasShrinkwrap":false}},"time":{"created":"2020-11-28T19:37:20.138Z","1.0.0":"2020-11-28T19:37:20.287Z","modified":"2022-05-06T04:54:41.559Z","1.0.1":"2020-11-28T19:39:48.429Z"},"maintainers":[{"name":"vweevers","email":"dev@vincentweevers.nl"}],"description":"Check that a git branch name is well formed","homepage":"https://github.com/vweevers/is-git-branch-name-valid","keywords":["branch","git","refname","validate"],"repository":{"type":"git","url":"git+https://github.com/vweevers/is-git-branch-name-valid.git"},"author":{"name":"Vincent Weevers"},"bugs":{"url":"https://github.com/vweevers/is-git-branch-name-valid/issues"},"license":"MIT","readme":"# is-git-branch-name-valid\n\n**Check that a git branch name is well formed.**\n\n[![npm status](http://img.shields.io/npm/v/is-git-branch-name-valid.svg)](https://www.npmjs.org/package/is-git-branch-name-valid)\n[![node](https://img.shields.io/node/v/is-git-branch-name-valid.svg)](https://www.npmjs.org/package/is-git-branch-name-valid)\n![Test](https://github.com/vweevers/is-git-branch-name-valid/workflows/Test/badge.svg?branch=main)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Usage\n\n```js\nconst validBranch = require('is-git-branch-name-valid')\n\nvalidBranch('foo.bar')     // true\nvalidBranch('foo-bar/baz') // true\nvalidBranch('foo^bar')     // false\nvalidBranch('HEAD')        // false\nvalidBranch('-foo')        // false\n```\n\n## API\n\n### `validBranch(name)`\n\nTakes a string `name`. Returns true if `name`:\n\n1. Is a [valid reference name](https://github.com/vweevers/is-git-ref-name-valid)\n2. Does not equal `HEAD` or start with `-`.\n\n## Install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install is-git-branch-name-valid\n```\n\n## License\n\n[MIT](LICENSE) © Vincent Weevers\n","readmeFilename":"README.md"}