New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

upvn

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

upvn

update [major, minor, patch ...] version info with remote npm version info.

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

upvn

====

This library is tool to update version info in the package.json with current version info in the NPM.
Mainly this library is used to update npm version before publish.

Purpose

Update version info before publish library to NPM.

Usage

This library have two ways to use.
Command line mode and library mode. Command line mode is made for purpose of CI.
Library mode is made to update version data in program.

Command line

In this mode, latest version is set from NPM information data.
And next, update package.json with updated version data.

$upvn [parameter]

In the Program

const upvn = require('upvn');

const test = 'v0.1.2-beta4';

upvn.update(test, 'major');     // -> v1.0.0
upvn.update(test, 'minor');     // -> v0.2.0
upvn.update(test, 'patch');     // -> v0.1.3
upvn.update(test, 'v1.1.1');    // -> v1.1.1
upvn.update(test, 'premajor');  // -> v1.0.0-beta0
upvn.update(test, 'preminor');  // -> v0.2.0-beta0
upvn.update(test, 'prepatch');  // -> v0.1.3-beta0
upvn.update(test, 'prerelease');// -> v0.1.2-beta5

About parameter

parameterdescriptionversion info in NPMsample paramresult
<newversion>version info. X.Y.Z ... format.
default value is override with this.
1.2.33.4.53.4.5
majorincrement major version1.2.3major2.0.0
minorincrement minor version1.2.3minor1.3.0
patchincrement patch version1.2.3patch1.2.4
premajorincrement major version and set release info1.2.3premajor2.0.0-0
preminorincrement minor version and set release info1.2.3preminor1.3.0-0
prepatchincrement patch version and set release info1.2.3prepatch1.2.4-0
prereleaseincrement release version1.2.3-0prerelease1.2.3-1

License

(The ISC License)

Copyright 2017 Shunsuke <qfoori@gmail.com>

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Keywords

FAQs

Package last updated on 30 Oct 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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc