Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@creately/array-chunk-by-size
Advanced tools
Chunk array of objects by their size in JSON
$ yarn add array-chunk-by-size
Useful if you want to split large array into smaller, but limited by JSON size.
Each array chunk will be up to specified amount of bytes when stringified into JSON.
import {chunkArray} from 'array-chunk-by-size';
const bigArray = [{a: 1}, {b: 2}, {c: 3}];
const twoKilobytes = 2 * 1024;
const smallerArrays = chunkArray({input: bigArray, bytesSize: twoKilobytes});
// => [ [ ... ], [ ... ] ] and so on
MIT © Vlad Holubiev
FAQs
Chunk array of objects by their size in JSON
The npm package @creately/array-chunk-by-size receives a total of 2 weekly downloads. As such, @creately/array-chunk-by-size popularity was classified as not popular.
We found that @creately/array-chunk-by-size demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.