Socket
Book a DemoInstallSign in
Socket

nrk-ludo-np

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nrk-ludo-np

A better `npm publish` with sensible defaults

1.0.13
latest
Source
npmnpm
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

An improved version of "A better npm publish", with sensible default configurations

inspired by, and based on np by Sindre Sorhus

At NRK we use this package to publish several ludo/player related modules.

Why

Could be run without any arguments and still let you

  • Follow semver patterns to increment patch, prepatch and prerelease
  • Publish patch release from master branch
  • Publish prerelease from branches other than master

Plus all the added benefits of np

  • clean set of node_modules
  • run tests
  • git tagged releases

Install

$ npm install nrk-ludo-np --save-dev

Usage

"scripts": {
  "my-publish": "nrk-ludo-np"
}

To skip cleanup and testing:

"scripts": {
  "my-publish": "nrk-ludo-np --yolo"
}

Version incrementation patterns

1.2.3 on master => 1.2.4

If run on the master branch, nrk-ludo-np increments the package version using patch

1.2.3 on branch => 1.2.4-branch.0

If run first time on branch branch, nrk-ludo-np increments the package version using prepatch and uses branch as the prepatch id

1.2.4-branch.0 on branch => 1.2.4-branch.1

If run again on branch branch, nrk-ludo-np increments the package version using prerelease

Tips

npm and tags

Publishing package foo from branch bar, makes that published package available using

npm install foo@bar

License

nrk-ludo-np is released under MIT License

Keywords

cli-app

FAQs

Package last updated on 22 Jun 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.