
Research
/Security News
11 Malicious Go Packages Distribute Obfuscated Remote Payloads
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
chunk-store-iterator
Advanced tools
Convert an abstract-chunk-store compliant store into an async iterator, or write to using an async iterator.
A majorly simplified version of chunk-store-stream. Dependency free and very fast.
Read/write data from/to a chunk store, with iterators.
npm install chunk-store-iterator
import { chunkStoreRead } from 'chunk-store-iterator'
import FSChunkStore from 'fs-chunk-store' // any chunk store will work
import { Readable } from 'streamx'
const chunkLength = 3
const store = new FSChunkStore(chunkLength)
// ... put some data in the store
const asyncIterator = chunkStoreRead(store, { length: 1200, zeroPadding: true })
const stream = Readable.from(asyncIterator)
stream.pipe(process.stdout)
// or
for await (const chunk of chunkStoreRead(store, { length: 1200 })) {
console.log(chunk)
}
import { chunkStoreWrite } from 'chunk-store-iterator'
import FSChunkStore from 'fs-chunk-store' // any chunk store will work
import fs from 'fs'
const chunkLength = 3
const store = new FSChunkStore(chunkLength)
const stream = fs.createReadStream('file.txt')
await chunkStoreWrite(store, stream)
MIT.
FAQs
Convert an abstract-chunk-store compliant store into an async iterator, or write to using an async iterator.
The npm package chunk-store-iterator receives a total of 8,593 weekly downloads. As such, chunk-store-iterator popularity was classified as popular.
We found that chunk-store-iterator demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).