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.4.3 to 0.4.4

2

package.json
{
"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,

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