
Product
Introducing Custom Tabs for Org Alerts
Create and share saved alert views with custom tabs on the org alerts page, making it easier for teams to return to consistent, named filter sets.
Playground npm package for experiments with NPM packages development process using NPM Registry. Created in February, 2017, that is why 'Feby'.
Playground npm package for experiments with NPM packages development process using NPM Registry. Created in February, 2017, that is why "Feby".
npm login
then provide username, password, and email. NPM will store info, and npm whoami should work - return username.
npm version patch
will increase version field value in package.json, and commit file. Eg. 1.0.15 will be changed to 1.0.16. minor, major are also available.
Also git tag will be created. So next git push origin master --tags will push tags also.
And when npm publish executed, then new version/release will be published to NPM registry.
Doesn't work:
npm publish feby
First time you need to:
npm publish --access public
And all future times:
npm publish
npm unpublish feby@1.0.7
npm unpublish feby@1.0.8
Note: If only one valid version used, that version can be unpublished as above command. Need to publish new version, and then unpublish previous, but might be needed to deprecate first:
$ npm unpublish feby@1.0.15
npm ERR! unpublish Failed to update data
npm ERR! code E400
npm ERR! You can no longer unpublish this version. Please deprecate it instead
npm ERR! npm deprecate feby@1.0.15 "this version has been deprecated" : 23-6b802899cf4e380475450040dee99124
$ npm deprecate feby@1.0.15
npm ERR! Usage: npm deprecate <pkg>[@<version>] <message>
$ npm deprecate feby@1.0.15 "old version"
$ npm deprecate feby@1.0.17 "old version"
$ npm unpublish feby@1.0.17
$ npm unpublish feby@1.0.18
Not sure how should this work properly.
Example of versions list on npmjs.com:

git tag -d 1.0.7 && git push origin :refs/tags/1.0.7
git tag -d 1.0.8 && git push origin :refs/tags/1.0.8
When package is ready to publish, NPM user should be logged in, and NPM should have tokens generated.
Look to ~/.npmrc file or run command npm token list:
ββββββββββ¬ββββββββββ¬βββββββββββββ¬βββββββββββ¬βββββββββββββββββ
β id β token β created β readonly β CIDR whitelist β
ββββββββββΌββββββββββΌβββββββββββββΌβββββββββββΌβββββββββββββββββ€
β 8a0b90 β 3bbc39β¦ β 2018-07-04 β no β β
ββββββββββΌββββββββββΌβββββββββββββΌβββββββββββΌβββββββββββββββββ€
β fd81e6 β 283fecβ¦ β 2018-07-04 β no β β
ββββββββββΌββββββββββΌβββββββββββββΌβββββββββββΌβββββββββββββββββ€
β 57700d β e0bf40β¦ β 2018-03-15 β no β β
ββββββββββ΄ββββββββββ΄βββββββββββββ΄βββββββββββ΄βββββββββββββββββ
Note:
3bbc39... is token generated by NodeJS v8.1.12 / npm v5.6.0 at my work machine.283fec... is token generated by NodeJS v10.4.0 / npm v.61.0 on my home machine.e0bf40... no idea, but some old token, generated time ago, in March 2018, when I played/tried with feby republish.There is manual approach to create TOKEN via npm token create, which asks ONLY for "npm password" and returns information about token:
ββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββ
β token β 7f899... β
ββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββ€
β cidr_whitelist β β
ββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββ€
β readonly β false β
ββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββ€
β created β 2018-07-04T16:01:29.041Z β
ββββββββββββββββββ΄βββββββββββββββββββββββββββββββββββββββ
And npm token list now will show more tokens. And npm token delete 57700d will delete (invalidate) token from list.
Important to know, the format of content is key=value. Since maybe NodeJS 6, it's a standard:
init.author.name=Andrii Lundiak
strict-ssl=false
always-auth=false
user-agent="npm/6.1.0 node/v10.4.0 linux x64"
etc=abc
//custom-nexus.com/repository/my-hosted-npm-registry/:_authToken=NpmToken.11e11003-****-c104c0ce466f
//registry.npmjs.org/:_authToken=4bac39b2-****-ec668f28176c
But special format is for storing auth/token information:
// at the start and/ at the end of registry url (otherwise NPM will not recognize it as registry and will throw ENEEDAUTH or similar error.).:_authToken= and then,_authToken= regular UUID value.NpmToken..As turned out, _authToken as piece of authentication line in .npmrc file is created/used when NPM works locally, or anyhow but using npm adduser/login.
But, there is _auth dedicated field/key, which is expected to be base64 value of encoded pair username:password.
Here and here are mentioned how to use this approach on CI.
echo -n 'admin:admin123' | openssl base64 and then use base64 value in:.npmrc file content for dedicated field/key _auth:email=you@example.com ; required
always-auth=true ; optional
_auth=YWRtaW46YWRtaW4xMjM= ; required
Having such setup in .npmrc file, CI (Jenkins, Bamboo) can authentication every future npm commands like whoami, token, publsish, search.
FAQs
Playground npm package for experiments with NPM packages development process using NPM Registry. Created in February, 2017, that is why 'Feby'.
We found that feby demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Create and share saved alert views with custom tabs on the org alerts page, making it easier for teams to return to consistent, named filter sets.

Product
Socketβs Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScriptβs Date object.