cleaner-node
Advanced tools
Comparing version 0.8.3 to 0.8.4
{ | ||
"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'; |
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
1733
67796
30