Neocon Propaganda Machine
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

check-exact

1.0.8 • Public • Published

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"
    }
  }
}

Keywords

none

install

npm i check-exact

Downloadsweekly downloads

9

version

1.0.8

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability