Socket
Book a DemoInstallSign in
Socket

check-exact

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

check-exact

check node project for exact dependencies

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
344
-1.15%
Maintainers
1
Weekly downloads
 
Created
Source

Check-Exact

npm license Build Status dependencies Status devDependencies Status Coverage Status Known Vulnerabilities

Simple module for checking if all your project dependencies are exact.

Usage (code)

const checkExact = require('check-exact');

// check by package data
const packageData = require('./package.json')
const checked = checkExact.checkPackageByData(packageData);
assert.equal(checked.log, 'all deps are exact.');
assert.equal(checked.result, true);


// check by package path
const packageFile ='./package.json';
const checked = checkExact.checkPackageBypath(packageFile);
assert.equal(checked.log, 'all deps are exact.');
assert.equal(checked.result, true);

Usage (cli)

npm i check-exact
check-exact ./package.json

or

npx check-exact ./package.json

Usage (husky)

{
  "husky": {
    "hooks": {
      "pre-push": "check-exact package.json"
    }
  }
}

FAQs

Package last updated on 30 Jan 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