Socket
Socket
Sign inDemoInstall

clear-path

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clear-path - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

15

index.js

@@ -0,1 +1,4 @@

/**
* Imports
*/
const del = require("del");

@@ -5,3 +8,6 @@ const chalk = require("chalk");

export const clearPath = ( pathToDelete ) => {
/**
* Where the magic happens
*/
const action = ( pathToDelete ) => {
if ( fs.existsSync( pathToDelete ) ) {

@@ -13,2 +19,7 @@ del( pathToDelete );

}
}
}
/**
* Export
*/
export const clearPath = action;

2

package.json
{
"name": "clear-path",
"version": "0.1.1",
"version": "0.1.2",
"description": "simple script to delete a path if exists",

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

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