{"_id":"not-prerelease","_rev":"963936","name":"not-prerelease","description":"Detect if the current package version, or the passed version is a prerelease","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"brandonocasey","email":"brandonocasey@gmail.com"}],"time":{"modified":"2024-08-30T12:38:25.000Z","created":"2018-08-16T15:12:16.427Z","1.0.1":"2018-08-16T15:14:40.690Z","1.0.0":"2018-08-16T15:12:16.427Z"},"users":{},"author":{"name":"Brandon Casey","email":"brandonocasey@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/brandonocasey/not-prerelease.git"},"versions":{"1.0.1":{"name":"not-prerelease","version":"1.0.1","description":"Detect if the current package version, or the passed version is a prerelease","bin":{"not-prerelease":"not-prerelease.js","is-prerelease":"is-prerelease.js"},"keywords":[],"repository":{"type":"git","url":"git+https://github.com/brandonocasey/not-prerelease.git"},"author":{"name":"Brandon Casey","email":"brandonocasey@gmail.com"},"license":"Apache-2.0","dependencies":{"semver":"^5.5.0"},"bugs":{"url":"https://github.com/brandonocasey/not-prerelease/issues"},"homepage":"https://github.com/brandonocasey/not-prerelease","gitHead":"a820bc01b416bdef8a0c90ec8aca9d64518aa708","_id":"not-prerelease@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"brandonocasey","email":"brandonocasey@gmail.com"},"dist":{"integrity":"sha512-Cyia7zecBYj219nIzJBc6TmzK3Z8MzFhShF365g3YrKngBmdmr4BRaKVVvVpHOxVlk/5iqn5Dmxz4K9M3orApA==","shasum":"2d0a6ca117d9683f51a7fcf6b0da2fc685a8ccb6","tarball":"http://registry-npm.ywwl.com/not-prerelease/download/not-prerelease-1.0.1.tgz","fileCount":5,"unpackedSize":3253,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbdZThCRA9TVsSAnZWagAA838P/0V+zjxmcuyZsECB1JpZ\nQr2Ley8Vvc+LeHsOq1yvNEFHcVCQKv8JiU+VexWr5R+Rbt+R8i0hznFBhQHw\nO6qR4vOvHEaPPui15e8PDzvOVyk7YApnHy8AvgPB6xvj2FZpJnNH6CVMrKY6\nUpNH9AEseTvH+6F9+rEOLmf9VfL9b85sDHZg3PDQK98V3iflEiWPL59eYgzo\nKzQLdogmwqSRykuC0sBGUUChM1OMfZQE2mDEGFUS9ZMTmBYXaNR+Afl82o+W\nptG28T9hFc1G5X90nmaZK6IHbMxYpzsrRE+ite680wUBQAxFbAOXLVUYLDTe\npgrwCTIBx0rdEGEj+8T0CtGGhw/86+fmSyB002Roaybanp5Fw+nxAIWKQRSu\nKKpy5E6dvz/F/kygpSK2u06TH4hHRVKEU+GSnJ22vekXQLaMEEMsjE8uqhej\nZZeTzai3YGEFZLVk4gnXdyDpR9gGXwku13tIczNn76Xsx89vTsXB/tuU3Fpy\nfr2QKTqgRIs6nTT9NSDhr7OlyrB0uarNbmpPNeDsW/YGOzszJG0Bp83iEzBR\nZO8/iHT1LxMvf3GHB8XUBOnu4TLGktRFI4bTHU9A+4u63E3hvjEt/dSE2w3s\npmlIY1P7Qih/ng/PSlhfEp04Yw4L4LPt+l9J/slaBJgzAaWF/xTZNLLazRqu\nq9Xp\r\n=A5ld\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCs+X+g1dEA22E65sKIwRg3YFvtAE30mMQ9KdnFfbZLkgIgBwzosRue1J+q5nFdTQePi32XAWPoMD9qA9EAHkqZGQg="}],"size":1532,"noattachment":false,"key":"/not-prerelease/-/not-prerelease-1.0.1.tgz"},"maintainers":[{"name":"brandonocasey","email":"brandonocasey@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/not-prerelease_1.0.1_1534432480556_0.329843155065874"},"_hasShrinkwrap":false,"publish_time":1534432480690,"_cnpm_publish_time":1534432480690},"1.0.0":{"name":"not-prerelease","version":"1.0.0","description":"Detect if the current package version, or the passed version is a prerelease","bin":{"not-prerelease":"not-prerelease.js","is-prerelease":"is-prerelease.js"},"keywords":[],"repository":{"type":"git","url":"git+https://github.com/brandonocasey/not-prerelease.git"},"author":{"name":"Brandon Casey","email":"brandonocasey@gmail.com"},"license":"Apache-2.0","dependencies":{"semver":"^5.5.0"},"bugs":{"url":"https://github.com/brandonocasey/not-prerelease/issues"},"homepage":"https://github.com/brandonocasey/not-prerelease","gitHead":"b2ebe8e91e3def8a6e3bda24185827e127578bfb","_id":"not-prerelease@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"brandonocasey","email":"brandonocasey@gmail.com"},"dist":{"integrity":"sha512-L7n+smRjuuPIrxSqYdSqEkJKBkR+lAzQMYlaV0Yyo0xUfv28uQyiXHRsgxdRb/giqF70DD979IxwO/vowtiTQQ==","shasum":"b298c6ffc2d2433d2d4a6b6a5079876e0eb5279f","tarball":"http://registry-npm.ywwl.com/not-prerelease/download/not-prerelease-1.0.0.tgz","fileCount":5,"unpackedSize":3253,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbdZRQCRA9TVsSAnZWagAAYN0QAKTdq7Xf7lBCN0qLlbSR\nNAfxQL4sTaSwIvoSIvf1tWvbDrdDy6vVI9V2rqccsrTDrO0pCfgkYqo5zIrK\nZELeS7HfZrTy8HDNkD5RIHk5pXgNqbMNzz2iv4FyYth0TpjCoHSTauIV30O0\nJc6xCtsXGoxwMMAU87qG8hG+tssFapemxt+/aOJp/wAXcfQwIu9spf1SiEWq\nKRy2T/EyNK3xrGTVaMjNwE0gsRdz5DySJFDRUOW+evX6+S4hyDr85HI3NHjR\nVUbyO+I4t77/6+8b23FfNYcyrsGR2Bd5W7NJXIcaHAbgfXv9W4wocazYD+M+\niD4nmWZdygHtvftBqQurNs1+QqfZbqb/Bo+UfAEy/s6HTbrHA3Wg1vuNeeke\n7fOiHK63e6icKMI8CABIcXD7B3P/g/t4C9LCLRIzfLh4pCK2zUzKQ0ufydbi\nyN+7HOeDosn/2A8JwVyUtKRKN/T4RZ555/F9MH/lTOZ/uC1JsB5zOTJoXvKA\n7eoTM+jtl1PQHmz8gHvRKr8wG5OvwW4eSF1Mvj7y4PYlK/J284zVO82A3zP8\nAh+r9MqIiEe0v3tnJugO6F0lvOIVmx2i5Lhn5NwSaHHIduJITROhUqAZ0Uyt\nhz/MJMluxXrPSN1Yo9oaFiKOtXDfGtmCe8kEGE78PM5MlKw2LzSEo2EaxF94\nJMP6\r\n=espk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBz1WOTeHYARqsPnJvEHs/CBWwUv6UmkXyRCk6tq51xAIhAK3UznFT2F+FxvD3ImAU0whf68nhPmzYAYtir9raz+sD"}],"size":1530,"noattachment":false,"key":"/not-prerelease/-/not-prerelease-1.0.0.tgz"},"maintainers":[{"name":"brandonocasey","email":"brandonocasey@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/not-prerelease_1.0.0_1534432336355_0.4726208920541506"},"_hasShrinkwrap":false,"publish_time":1534432336427,"_cnpm_publish_time":1534432336427}},"readme":"# not-prerelease\n\nDetect if the current `npm version` call is a `prerelease` or not. That way the version\nlifecycle script can do things selectively in actual releases vs prereleases, such as\nupdate a changelog with [conventional-changelog](https://github.com/conventional-changelog/conventional-changelog)\n\n## Installation\n\n```\n$ npm install --save-dev not-prerelease\n```\n\nThen edit your package.json to have:\n\n```json\n  \"scripts\": {\n    \"version\": \"not-prerelease && thing-i-dont-want-to-do-on-prerelease || is-prerelease\"\n  }\n```\n\nNow when you run:\n\n```\n$ npm version <major|minor|patch|prerelease>\n```\n\nThen `thing-I-dont-want-on-prerelease` won't be run during a prerelease but,\nwill be run done during a major, minor, or patch releases.\n\n## Other information\nThis package exports two binaries both of which default to looking at the version of package.json in the current directory, but they can also be passed one argument, a version to check.\n\n- `not-prerelease`\n  - If the version in package.json or that was passed is a prerelease it will exit 1 (failure) otherwise it will exit 0.\n- `is-prerelease`\n  - If the version in package.json or that was passed is a prerelease it will exit 0 (success) otherwise it will exit 1.\n\n\n","_attachments":{},"homepage":"https://github.com/brandonocasey/not-prerelease","bugs":{"url":"https://github.com/brandonocasey/not-prerelease/issues"},"license":"Apache-2.0"}