Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

unused-package

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unused-package - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

14

index.js

@@ -108,7 +108,13 @@ const directories = __dirname.split("/");

const packageData = JSON.parse(fs.readFileSync(packageJsonPath, "utf-8"));
try {
const packageData = JSON.parse(
fs.readFileSync(packageJsonPath, "utf-8")
);
return packageData.peerDependencies
? !!packageData.peerDependencies[package]
: false;
return packageData.peerDependencies
? !!packageData.peerDependencies[package]
: false;
} catch (error) {
return false;
}
});

@@ -115,0 +121,0 @@ return !isPeerDependency;

{
"name": "unused-package",
"version": "1.1.0",
"version": "1.1.1",
"description": "unused-package is a dependency analysing tool which lets you know which packages are not being used or if package is devDependency but installed as normal dependency",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -10,3 +10,3 @@ # unused-package

```
npm install unused-package
npm install unused-package --save-dev
```

@@ -17,3 +17,3 @@

```
yarn add unused-package
yarn add --dev unused-package
```

@@ -20,0 +20,0 @@

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