Coder Social home page Coder Social logo

update-v's Introduction

Update-V

A simple command-line utility that updates the version in your project's package.json file

Getting Started

These instructions will get you a copy of update-v on your local machine.

Installing

update-v is available via npm

npm i -g update-v

Built With

Versioning

We use SemVer for versioning.

Contributing

If you would like to contribute to this project, first of all, thank you.

Authors

  • Martin Cox - Initial work

License

This project is licensed under the MIT License - see the LICENSE file for details

Usage

This is how you can use update-v.

Basic Usage

Just run update [-m|-f|-p].

Example

$ cd my/awesome/module
$ update-v -p

Updates the package.json file -> version by 0.0.1.

API Reference

Below is update-v's API reference.

-m|--major

Increment the first version digit (breaking change)

  • Type: Boolean

Example

$ update-v -m
// Change package.json file from this:
{

    "version": "1.0.0"

}

// Into this:
{

    "version": "2.0.0"

}

-f|--feature|--minor

Increment the second version digit (additional feature)

  • Type: Boolean

Example

$ update-v -f
// Change package.json file from this:
{

    "version": "1.0.0"

}

// Into this:
{

    "version": "1.1.0"

}

-p|--patch

Increment the third version digit (patched issue)

  • Type: Boolean

Example

$ update-v -p
// Change package.json file from this:
{

    "version": "1.0.0"

}

// Into this:
{

    "version": "1.0.1"

}

update-v's People

Contributors

renegadefox avatar

Stargazers

 avatar

Watchers

 avatar  avatar

update-v's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.