cleaner-node
Advanced tools
Comparing version 0.4.8 to 0.4.9
{ | ||
"name": "cleaner-node", | ||
"version": "0.4.8", | ||
"version": "0.4.9", | ||
"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", |
const fs = require('fs'); | ||
const fsx = require('fs-extra'); | ||
const path = require('path'); | ||
@@ -48,2 +49,11 @@ const md5File = require('md5-file'); | ||
const ensureFolder = folderPath => { | ||
try { | ||
fsx.ensureDirSync(folderPath); | ||
} catch (ex) { | ||
return false; | ||
} | ||
return isFolder(folderPath); | ||
} | ||
// ----- CONTENTS | ||
@@ -206,3 +216,4 @@ | ||
isFolder, | ||
ensureFolder, | ||
fileContents, | ||
@@ -209,0 +220,0 @@ folderContents, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54579
1301
2