{"_id":"@darkobits/skip-if-ignored","_rev":"4-7bf892e40bfc4459952ddc725868294d","name":"@darkobits/skip-if-ignored","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@darkobits/skip-if-ignored","version":"0.1.0","license":"WTFPL","description":"Alternative implementation of NPM's ignore_scripts logic.","author":{"name":"darkobits"},"repository":{"type":"git","url":"git+https://github.com/darkobits/skip-if-ignored.git"},"bin":{"skip-if-ignored":"dist/skip-if-ignored.js"},"scripts":{"prepare":"nps prepare"},"dependencies":{"@darkobits/env":"^1.3.4","execa":"^5.1.1"},"devDependencies":{"@darkobits/ts":"^0.3.3"},"gitHead":"cc95478315631dc6586e2af31476f94dec05f838","bugs":{"url":"https://github.com/darkobits/skip-if-ignored/issues"},"homepage":"https://github.com/darkobits/skip-if-ignored#readme","_id":"@darkobits/skip-if-ignored@0.1.0","_nodeVersion":"16.2.0","_npmVersion":"7.16.0","dist":{"integrity":"sha512-ufWHFe/Be3EVYebnSodZeBHXrraH3GTc53YNLtr/yqRDdoN+XGBVRiATRabRz+XKeLE3f/d2AWUM7Y8SDKHygg==","shasum":"353a4bebf4279150566ab1b556051910b444701d","tarball":"https://registry.npmjs.org/@darkobits/skip-if-ignored/-/skip-if-ignored-0.1.0.tgz","fileCount":6,"unpackedSize":4746,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgu1IsCRA9TVsSAnZWagAAdR8P/16lIeUqusQFMD7EO5Pe\n4rigTK+gI1sYOkL+2LGtURjD/3n7neSYovpKXLuzViZC6gYj31xoE508QJmv\nEKZBy16uB6Nt+WLXtgp8aXFmZO+zww8cpHe7iZw21wpXZ+A27hqLEGrjl3CF\n8iVl97vjQkSciRBXYMn2Fusa9LBrhEWwFzNnGkmQwpd523ZQJW6OV/nvdhPr\nESpoh0VheWub3T/UcoSs4aaZ0jzcPCHirsIjmrYn+H8xRUimp6Fx2/8mHNdb\nTRvvzmnn4OZj8xWIhLbxEGgoYlBLsuju9/Xw1PdeGkyOuhBPwTPqB3QqNUQk\npi+6j2BYbgIJ2xUDafJHbxQnV/YLvgvD7cb53RXDA3rBspSquhv+/YfFHjfO\n04Egf0HDmDikbj3nLrcXeVOGfrt/W5SO++eR7x1CqkVZr8Sdjcu6vMwGV1i0\nweHB5EYGBdo8R7/Tmh/OLnYD1Fwtt30XE3yfuhD7Sctok8Vw0PyMUdvsC4G7\noabbTyafamQP0n2717KOwgsolbjY+bCFvXN51SCuUbOTs06/B+Fvnc6Os42x\nALDkURcaKC/HRrLGwGSwpnbHuKwZSlcbJtzx05w7r+oGeqAUcy4hx7gjGuFC\nThM+DGU4L3v0PvtjipMiQoZ9XfMbrzBJVjwpjWF+LLGjtXDCAMYgIn+VJjLm\nYXaG\r\n=iNkX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEjiRiQpEjZ3aTLNETml+5KXR8EWZb4p+bZeT8Hu1UHxAiEA9EvoZVpvC4gb1Wd2sSFzqz9w/OmVBDDXc1eJ6Bu59t4="}]},"_npmUser":{"name":"darkobits","email":"joshua@frontlawn.net"},"directories":{},"maintainers":[{"name":"darkobits","email":"joshua@frontlawn.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/skip-if-ignored_0.1.0_1622889004422_0.05155406470492219"},"_hasShrinkwrap":false,"deprecated":"This package should no longer be necessary, as the related bug in the NPM CLI has been fixed in version 7.20.0."},"0.2.0":{"name":"@darkobits/skip-if-ignored","version":"0.2.0","license":"WTFPL","description":"Alternative implementation of NPM's ignore_scripts logic.","author":{"name":"darkobits"},"repository":{"type":"git","url":"git+https://github.com/darkobits/skip-if-ignored.git"},"bin":{"skip-if-ignored":"dist/skip-if-ignored.js"},"scripts":{"prepare":"nps prepare"},"dependencies":{"@darkobits/env":"^1.3.4","@darkobits/log":"^2.0.0-beta.15","execa":"^5.1.1"},"devDependencies":{"@darkobits/ts":"^0.3.3"},"gitHead":"d1f93da5ffd129a2751aba9a2d3dc3526f8c99ea","bugs":{"url":"https://github.com/darkobits/skip-if-ignored/issues"},"homepage":"https://github.com/darkobits/skip-if-ignored#readme","_id":"@darkobits/skip-if-ignored@0.2.0","_nodeVersion":"16.2.0","_npmVersion":"7.16.0","dist":{"integrity":"sha512-NaRN3f1meCGbR6u+T4gYeSrCwS6JkbJo/fsBofTBMYH0NBqyoVJpp8WCSLijGWoTUXKDgBcrOFR1f1yfhbBnVg==","shasum":"d1231b7a2f02a1c2a27f88b55ddc26f64d551228","tarball":"https://registry.npmjs.org/@darkobits/skip-if-ignored/-/skip-if-ignored-0.2.0.tgz","fileCount":6,"unpackedSize":8174,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgvJanCRA9TVsSAnZWagAAMSsP/0/FZTJ/4L6n4eyZjgqc\nhFAmhUc7VgmdLkRwgljdLDK/smFn5rZswxPMG+nSmz55c/5xrw0X4oJbgILP\n+8TBWyWOiesmqhESOb1uapJ9kbXzsltAOis0xMMKPm6Hecri6YGjWoCw9ShG\nXsFvZ6gzpcM+q7Hu3/L4iHtCQtmCx5OMepcb2oFuWXrv6Pl497nS+vb9aSmg\nY/jfcfgjwevBY8AW68uBcQr/PLmRWgiRHvzkc6JDis7mbE5Yki+R294F8Whr\njovNQ15HXVbPtBNKyBJoasKvxsz4zIC4oNVDtpnoww7Co5oWhy01Dn31dRAb\nsBxiDT7TEXRNTFvHraFS/yLSa2GiCb2Azf3JZ3I2AKB2KoUBJKHriGOOGtIP\n0DkNO3+zycTjJcuTbRNkkrBDxOqEJV8nEJXuj3y4tT9px8woleSeBPX8iztr\nUqnGO1g76iO6giKJkzRI5hcUn2M6c/TzsQIr+i7lI/8AIzMbH+eBjQEemSGa\nR3Q2iYG4bM1jYZ072dGc+tq+2kRMUJRujAtFyeB3eSy4G/KaF8gkRQLpE333\nSzy/HWsTIQGep0DO6UxFNciI2WGABWtAP8aURPdeMsdVsJ6Kjxe6HGlpHXUl\noXSC8cNWaZxrRdmMmyC5NjCtCoIemLQtGy87LoOmpHF3s3WxTzBysOi0PhBJ\nYgt5\r\n=FauY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDol7u+yHXd53qlOfj9mq7aJM30gT5rBOWNo6q6WJ/mYQIgHpIgvZh0plcdzQuekpHPQsIq1EaVQMWfodUP+juQqGg="}]},"_npmUser":{"name":"darkobits","email":"joshua@frontlawn.net"},"directories":{},"maintainers":[{"name":"darkobits","email":"joshua@frontlawn.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/skip-if-ignored_0.2.0_1622972071233_0.7116653964220141"},"_hasShrinkwrap":false,"deprecated":"This package should no longer be necessary, as the related bug in the NPM CLI has been fixed in version 7.20.0."}},"time":{"created":"2021-06-05T10:30:04.421Z","0.1.0":"2021-06-05T10:30:04.561Z","modified":"2023-02-07T18:54:09.092Z","0.2.0":"2021-06-06T09:34:31.393Z"},"maintainers":[{"name":"darkobits","email":"joshua@frontlawn.net"}],"description":"Alternative implementation of NPM's ignore_scripts logic.","homepage":"https://github.com/darkobits/skip-if-ignored#readme","repository":{"type":"git","url":"git+https://github.com/darkobits/skip-if-ignored.git"},"author":{"name":"darkobits"},"bugs":{"url":"https://github.com/darkobits/skip-if-ignored/issues"},"license":"WTFPL","readme":"<a href=\"#top\" id=\"top\">\n  <img src=\"https://user-images.githubusercontent.com/441546/120887671-178a0c00-c5a9-11eb-8c73-66220ef98e07.png\" style=\"max-width: 100%;\">\n</a>\n<p align=\"center\">\n  <a href=\"https://www.npmjs.com/package/@darkobits/skip-if-ignored\"><img src=\"https://img.shields.io/npm/v/@darkobits/skip-if-ignored.svg?style=flat-square\"></a>\n  <a href=\"https://github.com/darkobits/skip-if-ignored/actions\"><img src=\"https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fdarkobits%2Fskip-if-ignored%2Fbadge%3Fref%3Dmaster&style=flat-square&label=build&logo=none\"></a>\n  <a href=\"https://depfu.com/github/darkobits/skip-if-ignored\"><img src=\"https://img.shields.io/depfu/darkobits/skip-if-ignored?style=flat-square\"></a>\n  <a href=\"https://conventionalcommits.org\"><img src=\"https://img.shields.io/static/v1?label=commits&message=conventional&style=flat-square&color=398AFB\"></a>\n</p>\n\nSince becoming generally available to the public over a year ago, NPM 7 has had a regression wherein\nthe presence of the `--ignore-scripts` command-line flag (or the `ignore_scripts` configuration option)\nis not honored when running other NPM commands. This package offers a very simplistic, interim\nimplementation of the `--ignore-scripts` behavior while the NPM team continue conducting their very\nimportant research on the efficacy of quantum nano tube technology being a viable replacement for commas\nin `package.json`.\n\n# Install\n\nIn most cases, this package should be installed as a development dependency of your project:\n\n```\nnpm install --save-dev @darkobits/skip-if-ignored\n```\n\nHowever, if you plan to use it in lifecycle scripts that run on the end user's computer, you'll need to\nmake it a production dependency:\n\n```\nnpm install --save @darkobits/skip-if-ignored\n```\n\n# Use\n\nWhat's in the box:\n\n`skip-if-ignored` - A script that you may append to your package script expressions that will do\napproximately the following:\n\n```yaml\n1. Is the current command being executed as part of an NPM lifecycle event?\n2. If not, bail.\n3. Is the current lifecycle \"exempt\"?\n4. If so, run our command.\n5. Else, is there an `--ignore-scripts` flag in `process.argv`?\n6. If so, bail.\n7. Else, run our command.\n```\n\nNote: This script will launch child processes in **detached mode** and then immediately exit.\n\n## Example\n\nLet us suppose we have a\n\n\nsomething we\n\n> `package.json`\n\n```json\n\n\n```\n\n\n## Additional Resources\n\n* [Official Documentation for The NPM CLI, Version 7](https://docs.npmjs.com/cli/v7)\n* [`--ignore-scripts` Documentation](https://docs.npmjs.com/cli/v7/commands/npm-install-ci-test#ignore-scripts)\n* **Bug Reports**\n  * [#2434](https://github.com/npm/cli/issues/2434) – `--ignore-scripts` flag is being ignored by npm ci\n  * [#2755](https://github.com/npm/cli/issues/2755) – Neither `--ignore-scripts` nor `--ignore-prepublish` are respected by npm publish\n\n\n<a href=\"#top\">\n  <img src=\"https://user-images.githubusercontent.com/441546/118062198-4ff04e80-b34b-11eb-87f3-406a345d5526.png\" style=\"max-width: 100%;\">\n</a>\n","readmeFilename":"README.md"}