
Research
/Security News
60 Malicious Ruby Gems Used in Targeted Credential Theft Campaign
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
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 6,243 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
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.