Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.