Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

array-chunk-by-size

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-chunk-by-size - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

2

index.js

@@ -47,3 +47,3 @@ const stringify = require('json-stringify-safe');

const str = stringify(obj);
return str.length;
return Buffer.byteLength(str, 'utf8');
} catch (error) {

@@ -50,0 +50,0 @@ return 0;

{
"name": "array-chunk-by-size",
"version": "1.0.0",
"version": "2.0.0",
"main": "index.js",

@@ -5,0 +5,0 @@ "description": "Chunk array of objects by their size in JSON",

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