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.3 to 0.1.4

src/lib/clean.js

14

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

@@ -22,8 +20,4 @@ const options = yargs

// On uncaughtException we should clean the npcheck-env directory
process.on('uncaughtException', () => {
const envDirectory = path.resolve(process.cwd(), 'npcheck-env');
if (fs.existsSync(envDirectory)) {
fs.rmdirSync(envDirectory, { recursive: true });
}
});
// Clean npcheck-env directory on uncaughtException and SIGINT (aka Ctrl +C)
process.on('uncaughtException', clean);
process.on('SIGINT', clean);
{
"name": "npcheck",
"version": "0.1.3",
"version": "0.1.4",
"description": "A tool to run various checks on npm modules",

@@ -5,0 +5,0 @@ "keywords": [],

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