Socket
Socket
Sign inDemoInstall

cleaner-node

Package Overview
Dependencies
Maintainers
1
Versions
175
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.9.0 to 0.9.1

2

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

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

@@ -84,6 +84,7 @@ const fs = require('fs');

};
const writeFile = (filePath, contents = '', createPath = true, overwrite = false) => {
const writeFile = (filePath, contents = '', overwrite = false) => {
if (isFile(filePath) && !overwrite) { return false; }
if (!isFolder(path.dirname(filePath) &&
(!createPath || !createPath(path.dirname(filePath))))) { return false; }
if (!isFolder(path.dirname(filePath)) && !createPath(path.dirname(filePath))) {
return false;
}
try {

@@ -90,0 +91,0 @@ fs.writeFileSync(filePath, String(contents));

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