cleaner-node
Advanced tools
Comparing version 0.4.5 to 0.4.6
{ | ||
"name": "cleaner-node", | ||
"version": "0.4.5", | ||
"version": "0.4.6", | ||
"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 path = require('path'); | ||
const md5File = requires('md5-file'); | ||
const md5File = require('md5-file'); | ||
const { isValid: isValidString } = require('./strings'); | ||
@@ -30,4 +30,4 @@ | ||
const result = path.parse(value); | ||
return (result && | ||
isValidString(result.root) && | ||
return (result && | ||
isValidString(result.root) && | ||
(isValidString(result.dir) || isValidString(result.base))) ? result : undefined; | ||
@@ -34,0 +34,0 @@ } catch (ex) { |
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
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
53056