Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chjj/pkg-verify
Dependency verifier for node.js
https://github.com/chjj/pkg-verify
Last synced: 9 days ago
JSON representation
Dependency verifier for node.js
- Host: GitHub
- URL: https://github.com/chjj/pkg-verify
- Owner: chjj
- License: other
- Created: 2017-12-29T20:01:05.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-21T19:12:22.000Z (over 5 years ago)
- Last Synced: 2024-10-20T01:14:56.123Z (24 days ago)
- Language: JavaScript
- Size: 28.3 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pkg-verify
Node.js module which will recursively walk your package.json at runtime,
verifying that all required dependencies satisfy their semver versions.## Usage
``` js
// Must pass your current `__dirname` as
// well as the relative path to the root
// directory of your module (where the
// package.json resides).// Throws on unsatisfied dependency.
require('pkg-verify')(__dirname, '../');// Throws on unsatisfied dependency.
require('pkg-verify').verify(__dirname, '../');// Warns on unsatisfied dependency.
require('pkg-verify').warn(__dirname, '../');// Exits with an error code of 1 on unsatisfied dependency.
require('pkg-verify').exit(__dirname, '../');
```## Contribution and License Agreement
If you contribute code to this project, you are implicitly allowing your code
to be distributed under the MIT license. You are also implicitly verifying that
all code is your original work. ``## License
- Copyright (c) 2017, Christopher Jeffrey (MIT License).
See LICENSE for more info.