New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

pkg-verify

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pkg-verify

Package verifier

latest
Source
npmnpm
Version
0.0.6
Version published
Maintainers
1
Created
Source

pkg-verify

Node.js module which will recursively walk your package.json at runtime, verifying that all required dependencies satisfy their semver versions.

Usage

// 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. </legalese>

License

  • Copyright (c) 2017, Christopher Jeffrey (MIT License).

See LICENSE for more info.

Keywords

pkg

FAQs

Package last updated on 21 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts