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.1 to 0.9.2

2

package.json
{
"name": "cleaner-node",
"version": "0.9.1",
"version": "0.9.2",
"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",

@@ -40,1 +40,2 @@ # cleaner-node

| 0.9.0 | 2020/05/14 | Add `files.readLines`. |
| 0.9.1 | 2020/05/19 | Add `arrays.toResult`. |

@@ -37,2 +37,12 @@ const strings = require('./strings');

const toResult = (itemOrItems, resultOrResults) => {
if (isValid(itemOrItems, true) === isValid(resultOrResults, true)) {
return resultOrResults;
}
if (isValid(itemOrItems, true)) {
return toArray(resultOrResults);
}
return first(resultOrResults);
};
module.exports = {

@@ -48,3 +58,5 @@ count,

init: toArray,
parse: toArray
parse: toArray,
toResult
};
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