
Security News
AI Agent Lands PRs in Major OSS Projects, Targets Maintainers via Cold Outreach
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.
random-access-file-reader
Advanced tools
An abstract-random-access compliant module for reading files in the browser using the FileReader API and browserify.
An abstract-random-access compliant module for reading files in the browser using the FileReader API and browserify.
npm install random-access-file-reader
var raf = require('random-access-file-readers')
var drop = require('drag-and-drop-files')
drop(document.body, function (files) {
var file = raf(files[0])
file.read(0, 1000, function (err, data) {
console.log('first 1000 bytes:', err, data)
})
})
You can use this to read files into hyperdrive as well
var hyperdrive = require('hyperdrive')
var drive = hyperdrive(db)
var files = {}
var archive = drive.createArchive({
file: function (name) {
return raf(files[name])
}
})
drop(document.body, function (files) {
files[files[0].name] = files[0]
// will index the file using hyperdrive without reading the entire file into ram
archive.append(files[0].name)
})
var file = raf(browserFile)Create a new instance. Accepts a browser file object. The file object has an abstract-random-access compliant API interface. Note that it is readonly so writes will fail.
file.lengthContains the byte length of the file.
MIT
FAQs
An abstract-random-access compliant module for reading files in the browser using the FileReader API and browserify.
The npm package random-access-file-reader receives a total of 4 weekly downloads. As such, random-access-file-reader popularity was classified as not popular.
We found that random-access-file-reader 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
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.

Research
/Security News
Chrome extension CL Suite by @CLMasters neutralizes 2FA for Facebook and Meta Business accounts while exfiltrating Business Manager contact and analytics data.

Security News
After Matplotlib rejected an AI-written PR, the agent fired back with a blog post, igniting debate over AI contributions and maintainer burden.