Name: verquire-cli
Owner: Auth0
Description: Versioned require
Created: 2015-05-27 21:53:28.0
Updated: 2016-01-11 17:32:54.0
Pushed: 2016-08-05 10:09:28.0
Homepage: null
Size: 14
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Installs Node.js modules for use with verquire.
Installation:
i -g verquire-cli
This creates a global install of verquire
CLI.
Create a packages.json
file with the spec of modules and their versions you want to install, e.g.:
"mongodb": ["2.0.33", "2.0.30"],
"async": ["1.0.0", "0.9.0"]
Create root directory for module installation:
r ~/_verquire
Run the tool to install modules from spec:
uire install -s ~/packages.json -e ~/errors.json ~/_verquire
Upon successful completion, you can set VERQUIRE_DIR=~/_verquire
environment variable and use the verquire module in your Node applications to load versioned Node.js modules, e.g.:
ire('verquire');
mongo = require('mongodb@2.0.33');
You can update package specifications by adding the latest versions of Node.js modules available on NPM to it. Assuming your ~/packages.json
as before, just run:
uire update-spec -s ~/packages.json -o ~/new_packages.json
The ~/new_packages.json
will contain a specification of the same modules as in ~/packages.json
, but with the latest version of each module from NPM added.
This is also a good way to bootstrap the first revision of the package spec. Create a ~/packages.json
file that lists module names without any version information, e.g.:
"mongodb": [],
"async": []
then run verquire update-spec
on it to populate it with the latest versions of these modules from NPM.
If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The Responsible Disclosure Program details the procedure for disclosing security issues.
This project is licensed under the MIT license. See the LICENSE file for more info.