adv

0.1.5 • Public • Published

ADV

Auto Dependencies Versioning for package.json

This CLI utility automatically fills in the version number of packages in dependencies field in package.json file.

Let's say you have a ~/AwesomeProject/package.json file and it's written like this

{
  "name": "my-project",
  "version": "1.0.0",
  "main": "index.js",
  "dependencies": {
   "serialport": "~",
   "express": "~",
   "pug": "",
   "socket.io": "^",
   "mongodb": ">=",
   "moment": "<",
    "ip": "*"
  }
}

Then you can run

adv ~/AwesomeProject

checking package serialport...
checking package express...
checking package pug...
checking package socket.io...
checking package mongodb...
checking package moment...
checking package ip...
express(~): version ~4.15.2
moment(<): version <2.18.1
pug(): version 2.0.0-beta11
ip(*): keeping *
socket.io(^): version ^1.7.3
serialport(~): version ~4.0.7
mongodb(>=): version >=2.2.25

All done! 🎉

The package.json file will then be changed to:

{
  "name": "my-project",
  "version": "1.0.0",
  "main": "index.js",
  "dependencies": {
    "serialport": "~4.0.7",
    "express": "~4.15.2",
    "pug": "2.0.0-beta11",
    "socket.io": "^1.7.3",
    "mongodb": ">=2.2.25",
    "moment": "<2.18.1",
    "ip": "*"
  }
}

Installation

npm install -g adv

Usage

adv /path/to/npm/project/folder

Readme

Keywords

none

Package Sidebar

Install

npm i adv

Weekly Downloads

58

Version

0.1.5

License

MIT

Last publish

Collaborators

  • hkalexling