{"_id":"@cognistreamer/np","_rev":"4-6b4f813917eae3b676cf8670d77d12ba","name":"@cognistreamer/np","dist-tags":{"latest":"2.21.0-1"},"versions":{"2.21.0-0":{"name":"@cognistreamer/np","version":"2.21.0-0","description":"A better `npm publish`","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/np.git"},"bin":{"np":"cli.js"},"engines":{"node":">=4"},"scripts":{"test":"xo && FORCE_HYPERLINK=1 ava"},"files":["index.js","cli.js","lib"],"keywords":["cli-app","cli","npm","publish","git","push","version","bump","commit"],"dependencies":{"any-observable":"^0.2.0","chalk":"^2.3.0","del":"^3.0.0","execa":"^0.8.0","github-url-from-git":"^1.5.0","has-yarn":"^1.0.0","hyperlinker":"^1.0.0","inquirer":"^3.0.6","issue-regex":"^1.0.0","listr":"^0.12.0","listr-input":"^0.1.1","log-symbols":"^2.1.0","meow":"^4.0.0","p-timeout":"^2.0.1","read-pkg-up":"^3.0.0","rxjs":"5.4.3","semver":"^5.2.0","split":"^1.0.0","stream-to-observable":"^0.2.0","supports-hyperlinks":"^1.0.1","update-notifier":"^2.1.0"},"devDependencies":{"ava":"*","xo":"*"},"licenseText":"MIT License\n\nCopyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@cognistreamer/np@2.21.0-0","dist":{"shasum":"29f93e5d8ca8e84107d38b1135c4247a82f857b8","tarball":"https://registry.npmjs.org/@cognistreamer/np/-/np-2.21.0-0.tgz","fileCount":15,"unpackedSize":28019,"integrity":"sha512-jU8Jgn98JtVW4F9Bgb08nUSFT8MyhQU9gSo/HmU34P+RPqewgmhW0giCvDK3JvpoV+EhmJPzdnXWCWORYf3S0g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbw48W4HNFjh/6xirE/a+e7PIM31utSnP4OBYlFcifcgIhAMBS119Ha7q6jhKJU9wMeX8MTtXOFLzl7y1EduKufiGB"}]},"maintainers":[{"name":"cognistreamer","email":"npm@cognistreamer.com"}],"_npmUser":{"name":"cognistreamer","email":"npm@cognistreamer.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/np_2.21.0-0_1519732138781_0.2793909088926112"},"_hasShrinkwrap":false},"2.21.0-1":{"name":"@cognistreamer/np","version":"2.21.0-1","description":"A better `npm publish`","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/np.git"},"bin":{"np":"cli.js"},"engines":{"node":">=4"},"scripts":{"test":"xo && FORCE_HYPERLINK=1 ava"},"files":["index.js","cli.js","lib"],"keywords":["cli-app","cli","npm","publish","git","push","version","bump","commit"],"dependencies":{"any-observable":"^0.2.0","chalk":"^2.3.0","del":"^3.0.0","execa":"^0.8.0","github-url-from-git":"^1.5.0","has-yarn":"^1.0.0","hyperlinker":"^1.0.0","inquirer":"^3.0.6","issue-regex":"^1.0.0","listr":"^0.12.0","listr-input":"^0.1.1","log-symbols":"^2.1.0","meow":"^4.0.0","p-timeout":"^2.0.1","read-pkg-up":"^3.0.0","rxjs":"5.4.3","semver":"^5.2.0","split":"^1.0.0","stream-to-observable":"^0.2.0","supports-hyperlinks":"^1.0.1","update-notifier":"^2.1.0"},"devDependencies":{"ava":"*","xo":"*"},"licenseText":"MIT License\n\nCopyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@cognistreamer/np@2.21.0-1","dist":{"shasum":"0420203304dc2d0c348a54187daed5c90bc5a206","tarball":"https://registry.npmjs.org/@cognistreamer/np/-/np-2.21.0-1.tgz","fileCount":15,"unpackedSize":28020,"integrity":"sha512-ONwivKS8JKQpE6IwiAgavrJcK5BDAUQ/V3xo12wipAXpuokOs5cRkJTQHKDvmc0yEaBReK6M9tMe5GshmpykRw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCiffZPps7SdlzL7Mop7M7n8slLl5ehuM992/q2O1ItgwIgXiMfcbytM1+Tj1IDnXvBrdtPI6gkGG0IdqSIyYkpvi4="}]},"maintainers":[{"name":"cognistreamer","email":"npm@cognistreamer.com"}],"_npmUser":{"name":"cognistreamer","email":"npm@cognistreamer.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/np_2.21.0-1_1519732723104_0.9705298292710989"},"_hasShrinkwrap":false}},"time":{"created":"2018-02-27T11:48:58.728Z","2.21.0-0":"2018-02-27T11:48:58.849Z","modified":"2022-06-12T16:21:25.555Z","2.21.0-1":"2018-02-27T11:58:43.151Z"},"maintainers":[{"name":"cognistreamer","email":"npm@cognistreamer.com"}],"description":"A better `npm publish`","keywords":["cli-app","cli","npm","publish","git","push","version","bump","commit"],"repository":{"type":"git","url":"https://github.com/sindresorhus/np.git"},"license":"MIT","readme":"# np [![Build Status](https://travis-ci.org/sindresorhus/np.svg?branch=master)](https://travis-ci.org/sindresorhus/np) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo)\n\n> A better `npm publish`\n\n<img src=\"screenshot.gif\" width=\"688\">\n\n\n## Why\n\n- [Interactive UI](#interactive-ui)\n- Ensures you are publishing from the `master` branch\n- Ensures the working directory is clean and that there are no unpulled changes\n- Reinstalls dependencies to ensure your project works with the latest dependency tree\n- Runs the tests\n- Bumps the version in package.json and npm-shrinkwrap.json (if present) and creates a git tag\n- Prevents [accidental publishing](https://github.com/npm/npm/issues/13248) of pre-release versions under the `latest` [dist-tag](https://docs.npmjs.com/cli/dist-tag)\n- Publishes the new version to npm, optionally under a dist-tag\n- Pushes commits and tags to GitHub\n- Supports [two-factor authentication](https://docs.npmjs.com/getting-started/using-two-factor-authentication)\n\n\n## Install\n\n```\n$ npm install --global np\n```\n\n*Support my open source work by buying this excellent [Node.js course](https://LearnNode.com/friend/AWESOME).*\n\n\n## Usage\n\n```\n$ np --help\n\n  Usage\n    $ np <version>\n\n    Version can be:\n      patch | minor | major | prepatch | preminor | premajor | prerelease | 1.2.3\n\n  Options\n    --any-branch  Allow publishing from any branch\n    --no-cleanup  Skips cleanup of node_modules\n    --yolo        Skips cleanup and testing\n    --no-publish  Skips publishing\n    --tag         Publish under a given dist-tag\n    --no-yarn     Don't use Yarn\n\n  Examples\n    $ np\n    $ np patch\n    $ np 1.0.2\n    $ np 1.0.2-beta.3 --tag=beta\n```\n\n\n## Interactive UI\n\nRun `np` without arguments to launch the interactive UI that guides you through publishing a new version.\n\n<img src=\"screenshot-ui.png\" width=\"1290\">\n\n\n## Tips\n\n### npm hooks\n\nYou can use any of the test/version/publish related [npm lifecycle hooks](https://docs.npmjs.com/misc/scripts) in your package.json to add extra behavior.\n\nFor example, here we build the documentation before tagging the release:\n\n```json\n{\n\t\"name\": \"my-awesome-package\",\n\t\"scripts\": {\n\t\t\"version\": \"./build-docs && git add docs\"\n\t}\n}\n```\n\n### Release script\n\nYou can also add `np` to a custom script in `package.json`. This can be useful if you want all maintainers of a package to release the same way (Not forgetting to push Git tags, for example). However, you can't use `publish` as name of your script because it's an [npm defined lifecycle hook](https://docs.npmjs.com/misc/scripts).\n\n```json\n{\n\t\"name\": \"my-awesome-package\",\n\t\"scripts\": {\n\t\t\"release\": \"np\"\n\t},\n\t\"devDependencies\": {\n\t\t\"np\": \"*\"\n\t}\n}\n```\n\n### Signed Git tag\n\nSet the [`sign-git-tag`](https://docs.npmjs.com/misc/config#sign-git-tag) npm config to have the Git tag signed:\n\n```\n$ npm config set sign-git-tag true\n```\n\nOr set the [`version-sign-git-tag`](https://yarnpkg.com/lang/en/docs/cli/version/#toc-git-tags) Yarn config:\n\n```\n$ yarn config set version-sign-git-tag true\n```\n\n### Private packages\n\n<img src=\"private-packages.png\" width=\"260\" align=\"right\">\n\nYou can use `np` for packages that aren't publicly published to npm (perhaps installed from a private git repo).\n\nSet `\"private\": true` in your `package.json` and the publish step will be skipped. All other steps\nincluding versioning and pushing tags will still be completed.\n\n### Public scoped packages\n\nTo publish [scoped packages](https://docs.npmjs.com/misc/scope#publishing-public-scoped-packages-to-the-public-npm-registry) to the public registry, you need to set the access level to `public`. You can do that by adding the following to your `package.json`:\n\n```json\n\"publishConfig\": {\n\t\"access\": \"public\"\n}\n```\n\n### Publish to a custom registry\n\nSet the [`registry` option](https://docs.npmjs.com/misc/config#registry) in package.json to the URL of your registry:\n\n```json\n\"publishConfig\":{\n\t\"registry\": \"http://my-internal-registry.local\"\n}\n```\n\n### Publish with a CI\n\nIf you use a Continuous Integration server to publish your tagged commits, use the `--no-publish` flag to skip the publishing step of `np`.\n\n### Publish to gh-pages\n\nTo publish to `gh-pages` or any other branch that serves your static assets), install [`branchsite`](https://github.com/enriquecaballero/branchsite), an `np`-like CLI tool aimed to compliment `np`, and create an [npm \"post\" hook](https://docs.npmjs.com/misc/scripts) that runs after `np`.\n\n```\n$ npm install --save-dev branchsite\n```\n\n```json\n\"scripts\":{\n\t\"deploy\": \"np\",\n\t\"postdeploy\": \"bs\"\n}\n```\n\n### Initial version\n\nFor new packages, start the `version` field in package.json at `0.0.0` and let `np` bump it to `1.0.0` or `0.1.0` when publishing.\n\n### Prerequisite step runs forever on macOS Sierra\n\nIf you're running macOS Sierra or higher and previously stored your Git SSH-key in the keychain (So you don't have to enter your password on every single Git command), it happens that the `prerequisite` step runs forever. This is because macOS Sierra no longer stores the SSH-key in the keychain by default, so it prompts for a password during the `prerequisite` step, but you're not able to input it. The solution is to open `~/.ssh/config` (if it doesn't exist create it), add or modify `AddKeysToAgent yes`, and save the file. To add your SSH-key to the keychain, you have to run a simple Git command like `git fetch`. Your credentials should now be stored in the keychain and you're able to use `np` again.\n\n\n## Created by\n\n- [Sindre Sorhus](https://github.com/sindresorhus)\n- [Sam Verschueren](https://github.com/SamVerschueren)\n\n\n## License\n\nMIT\n","readmeFilename":"readme.md"}