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

package-checker

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

package-checker

Library to compare currently installed versions of packages with package.json file

latest
Source
npmnpm
Version
1.2.4
Version published
Weekly downloads
6
20%
Maintainers
1
Weekly downloads
 
Created
Source

package-checker

A simple plugin to compare currently installed packages with list in package.json file.

Installation

project: npm install package-checker --save-dev

global: npm install package-checker -g

Usage

project:

var packageChecker = require('package-checker');
packageChecker(options, callback);

global: package-checker [options]

API

package-checker [options]

options

-d, --dev

Type: boolean

Default: true

Check dependencies from package.json file

-p, --prod

Type: boolean

Default: true

Check devDependencies from package.json file

-D, --directory

Type: string

Default: process.cwd()

Path to directory having node_modules directory

-P, --path

Type: string

Default: process.cwd() + '/package.json'

Path to package.json file

-v, --version

Print current version of package-checker

-h, --help

Print help information

package-checker([options, callbak])

options

path

The same as --path for CLI tool

directory

The same as --dir for CLI tool

prod

The same as --prod for CLI tool

dev

The same as --dev for CLI tool

callback

Type: function

Arguments: error, output

Keywords

npm

FAQs

Package last updated on 15 Sep 2016

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