sematic-dependencies
v0.0.10
Published
Put the corrent dependencies version inside package.json isntead of * so we dont get unsupported version in future.
Downloads
5
Maintainers
Readme
Sematic Dependencies
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