cleaner-node
Advanced tools
Comparing version 0.3.5 to 0.3.6
{ | ||
"name": "cleaner-node", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"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", |
@@ -8,2 +8,3 @@ # cleaner-node | ||
|-----------|--------|---------------| | ||
| 0.3.5 | 2019/02/17 | Add `objects.getValue`, `getValues`, and `setValue` to get & set properties of an object using fully qualified path names. | | ||
| 0.3.5 | 2019/02/17 | Add `objects.getValue`, `getValues`, and `setValue` to get & set properties of an object using fully qualified path names. | | ||
| 0.3.6 | 2019/02/18 | Add `strings.getByteCount` to determine true size of string rather than simply using `.length`. | |
@@ -210,2 +210,8 @@ const cc = require('camelcase'); | ||
const getByteCount = (value, trimFirst) => { | ||
if (typeof value !== 'string') { return null; } | ||
return Buffer.byteLength((trimFirst ? value.trim() : value), 'utf8') | ||
} | ||
module.exports = { | ||
@@ -220,2 +226,3 @@ isHtml: isHTML, | ||
findPrefix, | ||
getByteCount, | ||
isLowerCase, | ||
@@ -222,0 +229,0 @@ isUpperCase, |
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
53465
1315
9