
Security News
libxml2 Maintainer Ends Embargoed Vulnerability Reports, Citing Unsustainable Burden
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
A tiny NPM package for splitting and recombining data.
npm i shardjs
import { shardify, blobify } from 'shardjs'
There are two methods in this package to split and recombine data.
function shardify(blob, chunk, sizeMode = "MODE_BITSIZE", contentType = "text/plain")
function blobify(shards, contentType = "text/plain")
To split a data blob of plaintext into three equal parts.
If there is an additional data that cannot be divided equally, it will be added as a 4th item.
import { shardify } from 'shardjs'
const file = new File(['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'], 'example.txt')
var shards = shardify(file, 3, "MODE_DIVIDE", "text/plain")
To split a data blob of plaintext into N parts, where each part is 5000 bits.
import { shardify } from 'shardjs'
const file = new File(['0'.repeat(1000000)], 'example.txt')
var shards = shardify(file, 5000, "MODE_BITSIZE", "text/plain")
To recombine blobs of split plaintext data.
import { blobify } from 'shardjs'
const file = new File(['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'], 'example.txt')
var shards = shardify(file, 3, "MODE_DIVIDE", "text/plain")
var blob = blobify(shards, "text/plain")
FAQs
A tiny NPM package for splitting and recombining data.
The npm package shardjs receives a total of 7 weekly downloads. As such, shardjs popularity was classified as not popular.
We found that shardjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.