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.3.5 to 0.3.6

2

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

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