cleaner-node
Advanced tools
Comparing version 0.4.3 to 0.4.4
{ | ||
"name": "cleaner-node", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"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", |
@@ -12,2 +12,3 @@ # cleaner-node | ||
| 0.4.0 | 2019/02/27 | Add `.fileContents`, `.lock`, `.unlock`, `.isLocked`, `.cleanLock` functions to `files`. | | ||
| 0.4.3 | 2019/03/16 | Add `.folderStructure` to `files` for producing a object graph from a single folder path. | | ||
| 0.4.3 | 2019/03/16 | Add `folderStructure` to `files` for producing a object graph from a single folder path. | | ||
| 0.4.4 | 2019/03/16 | Add `isSemver` to `strings` for determining if a string is a valid semver format. | |
@@ -215,2 +215,10 @@ const cc = require('camelcase'); | ||
const isSemver = value => { | ||
// const clean = (value, valid = ALPHANUMERIC, invalid = '', isCaseSensitive = false) => { | ||
const test = clean(value, `${DIGITS}.`); | ||
if (value !== test) { return false; } | ||
const parts = test.split('.'); | ||
if (parts.length !== 3) { return false; } | ||
return isDigits(parts[0]) && isDigits(parts[1]) && isDigits(parts[2]); | ||
} | ||
@@ -243,2 +251,3 @@ module.exports = { | ||
isPrefix, | ||
isSemver, | ||
trim, | ||
@@ -245,0 +254,0 @@ trimToUndefined, |
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
52983
1250
14