sematic-dependencies

0.0.10 • Public • Published

Sematic Dependencies Build Status

Put the correct dependencies version inside package.json instead of * so we dont get unsupported version in future.

Install

Download manually or with a package-manager.

npm

npm install --global sematic-dependencies

Example

If you have your dependencies already installed in node_modules folder, it will get the version from that folder

var sd = require('sematic-dependencies');
console.log(sd({
  "dependencies": {
    "object-extend": "*"
  },
  "devDependencies": {
    "mocha": "*",
    "should": "3.3.2"
  }
}));
/*
{
  "dependencies": {
    "object-extend": "^0.5.0"
  },
  "devDependencies": {
    "mocha": "^1.19.0",
    "should": "3.3.2"
  }
}
*/

CLI

Run it from folder where the package.json is located

$ sd
$ sd -p=~ -i=4
$ sd --prefix=~ --indentation=4
$ sd --prefix=~ --indentation=tab

Options

prefix

Type: String
Default: '^'

Prefix for your package dependencies. (most used are ^ or ~)

License

MIT © Daniel Husar

Package Sidebar

Install

npm i sematic-dependencies

Weekly Downloads

0

Version

0.0.10

License

none

Last publish

Collaborators

  • efrafa