šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

npm-snapshot

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-snapshot

Tiny tool for releasing npm prerelease snapshots.

1.1.2
latest
Source
npm
Version published
Weekly downloads
3.3K
-23.82%
Maintainers
1
Weekly downloads
Ā 
Created
Source

npm-snapshot

A little script to help with prerelease npm modules.

Usage

You must use npm-snapshot in a folder with a package.json.

npm-snapshot 245

The argument to this utility is a unique, monotonically increasing number (say, a build number from Travis or Shippable) that will be appended to the prerelease portion of the existing version. If there is no current prerelease portion of the version, the string 'SNAPSHOT' will be used. Any existing prerelease portion will be preserved, up to the first '.'.

For example, given the version "1.2.4", calling

npm-snapshot 245

will change the package.json to be "1.2.4-SNAPSHOT.245".

Additionally, the prerelease prefix is emitted on standard out. This is useful as a tag when publishing. For example:

BUILD_TAG = $(npm-snapshot $BUILD_NUMBER)
npm publish --tag BUILD_TAG

Install

npm install -g npm-snapshot

License

MIT

FAQs

Package last updated on 30 Apr 2024

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