Socket
Socket
Sign inDemoInstall

npcheck

Package Overview
Dependencies
Maintainers
5
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npcheck - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

16

index.js
#! /usr/bin/env node
const yargs = require('yargs');
const chalk = require('chalk');
const cli = require('./src/cli');

@@ -20,4 +21,15 @@ const clean = require('./src/lib/clean');

// Clean npcheck-env directory on uncaughtException and SIGINT (aka Ctrl +C)
process.on('uncaughtException', clean);
// output error stack trace on uncaughtException and unhandledRejection
process.on('uncaughtException', err => {
console.log(chalk.red.bold(err.stack));
process.exit(1);
});
process.on('unhandledRejection', err => {
console.log(chalk.red.bold(err.stack));
process.exit(1);
});
// clean-up hook before exiting the node.js process
process.on('exit', clean);
process.on('SIGINT', clean);

8

package.json
{
"name": "npcheck",
"version": "0.1.5",
"version": "0.1.6",
"description": "A tool to run various checks on npm modules",

@@ -24,7 +24,8 @@ "keywords": [],

"scripts": {
"start": "node .",
"prepare": "husky install",
"pretest": "eslint --ignore-path .gitignore",
"lint:fix": "eslint . --fix",
"test": "jest --no-color",
"start": "node .",
"lint:fix": "eslint . --fix"
"coverage": "jest --coverage"
},

@@ -42,2 +43,3 @@ "dependencies": {

"devDependencies": {
"coveralls": "^3.1.0",
"eslint": "^7.18.0",

@@ -44,0 +46,0 @@ "eslint-config-semistandard": "^15.0.1",

@@ -5,2 +5,5 @@ # npcheck

![Node.js CI](https://github.com/nodeshift/npcheck/workflows/Node.js%20CI/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/nodeshift/npcheck/badge.svg?branch=main)](https://coveralls.io/github/nodeshift/npcheck?branch=main)
## Prerequisites

@@ -7,0 +10,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc