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

cleaner-node

Package Overview
Dependencies
Maintainers
1
Versions
176
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cleaner-node - npm Package Compare versions

Comparing version 0.6.12 to 0.6.13

4

package.json
{
"name": "cleaner-node",
"version": "0.6.12",
"version": "0.6.13",
"description": "Helpful utilities and scripts to make Node projects more legible and easier for the next developer to take over.",

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

"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "^7.15.0",
"eslint-plugin-react": "^7.16.0",
"eslint-plugin-standard": "^4.0.1"
}
}

@@ -22,1 +22,2 @@ # cleaner-node

| 0.6.12 | 2019/10/01 | Add `.isEmpty` to `objects` to differentiate between empty and invalid. |
| 0.6.13 | 2019/10/08 | Add `.createPath` to `files` to create folder path with clean boolean feedback. |

@@ -48,2 +48,17 @@ const fs = require('fs');

// ----- FOLDERS
const createPath = value => {
if (!isValidString(value)) { return false; }
if (isFolder(value)) { return true; }
try {
fs.mkdirSync(value, {
recursive: true
})
} catch (ex) {
console.error(ex);
}
return isFolder(value);
}
// ----- CONTENTS

@@ -205,3 +220,4 @@

isFolder,
createPath,
fileContents,

@@ -208,0 +224,0 @@ folderContents,

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