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.8.3 to 0.8.4

2

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

@@ -25,4 +25,2 @@ # cleaner-node

| 0.7.0 | 2019/10/08 | Enhanced file locking operations within `files`. |
| 0.7.1 | 2020/01/06 | Fix to `strings.isValidChars`. |
| 0.7.2 | 2020/01/06 | Fix to `objects.isValid`. |
| 0.7.3 | 2020/01/14 | Add `objects.likeKeys` and `likeKey` to find keys of an object where case or format is unknown. |

@@ -29,0 +27,0 @@ | 0.8.0 | 2020/01/16 | Add `env` methods. |

const path = require('path');
const { isFile, isFolder } = require('./files');
const { ifValid: ifValidString } = require('./strings');
const { min } = require('./numbers');
const NODE_ENV = `${process.env.NODE_ENV}`.trim() || 'development';
const NODE_DEBUG = `${process.env.NODE_DEBUG}`.trim() || 'false';
const NODE_ENV = ifValidString(process.env.NODE_ENV, 'development');
const NODE_DEBUG = ifValidString(process.env.NODE_DEBUG, 'false');
const IS_DEV = NODE_ENV.trim().toUpperCase().startsWith('DEV');

@@ -8,0 +9,0 @@ const IS_DEBUG = NODE_DEBUG.trim().toUpperCase() === 'TRUE';

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