Gathering detailed insights and metrics for level-blobs
Gathering detailed insights and metrics for level-blobs
Gathering detailed insights and metrics for level-blobs
Gathering detailed insights and metrics for level-blobs
npm install level-blobs
96.2
Supply Chain
94.8
Quality
74.3
Maintenance
100
Vulnerability
100
License
Module System
Unable to determine the module system for this package.
Min. Node Version
Typescript Support
Node Version
NPM Version
8 Stars
35 Commits
2 Forks
3 Watching
1 Branches
1 Contributors
Updated on 31 May 2019
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-0.3%
27,127
Compared to previous day
Last week
-0.2%
163,669
Compared to previous week
Last month
9%
668,072
Compared to previous month
Last year
39.5%
6,380,752
Compared to previous year
3
Save binary blobs in level and stream then back. Similar to level-store but streams2 and with support for random access writes and reads
npm install level-blobs
1var blobs = require('level-blobs'); 2var level = require('level'); 3 4var db = level('/tmp/my-blobs-db'); 5var bl = blobs(db); 6 7// create a write stream 8var ws = blobs.createWriteStream('my-file.txt'); 9 10ws.on('finish', function() { 11 // lets read the blob and pipe it to stdout 12 var rs = blobs.createReadStream('my-file.txt'); 13 rs.pipe(process.stdout); 14}); 15 16ws.write('hello '); 17ws.write('world'); 18ws.end();
blobs(db, opts)
Create a new blobs instance. Options default to
1{ 2 blockSize: 65536, // byte size for each block of data stored 3 batch: 100 // batch at max 100 blocks when writing 4}
bl.createReadStream(name, opts)
Create a read stream for name
. Options default to
1{ 2 start: 0 // start reading from this byte offset 3 end: Infinity // end at end-of-file or this offset (inclusive) 4}
bl.createWriteStream(name, opts)
Create a write stream to name
. Options default to
1{ 2 start: 0 // start writing at this offset 3 // if append === true start defaults to end-of-file 4 append: false // set to true if you want to append to the file 5 // if not true the file will be truncated before writing 6}
bl.read(name, opts, cb)
Create a read stream and buffer the stream into a single buffer that is passed to the callback.
Options are passed to createReadStream
.
bl.write(name, data, opts, cb)
Write data
to name
and call the callback when done.
Options are passed to createWriteStream
.
bl.remove(name, cb)
Remove name
from the blob store
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
no SAST tool detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More