
Security News
crates.io Ships Security Tab and Tightens Publishing Controls
crates.io adds a Security tab backed by RustSec advisories and narrows trusted publishing paths to reduce common CI publishing risks.
level-pathwise
Advanced tools
Turn a leveldb into one object of arbitrary size. Efficiently+atomically update+read parts
Turn a leveldb into one huge object of arbitrary size! Efficiently and atomically update and read parts of it!
var Pathwise = require('level-pathwise');
var level = require('level');
var store = new Pathwise(level('db'));
// insert an object on the root level
store.put([], {
foo: {
bar: ['beep', 'boop'],
baz: 'bleep'
}
}, function(err){});
// read it out
store.get([], function(err, obj){
// => {
// foo: {
// bar: ['beep', 'boop'],
// baz: 'bleep'
// }
// }
});
// read only a subsection of the object,
// like data.foo.bar
store.get(['foo', 'bar'], function(err, obj){
// => ['beep', 'boop']
});
// extend an object,
// like data.foo.key = 'value'
store.put([], {
foo: {
key: 'value'
}
})
// read the direct children of a path
store.children(['foo'], function(err, children){
// => ['bar', 'baz']
});
// remove some data,
// like delete data.foo.baz
store.del(['foo', 'baz'], function(err){});
// perform several updates in one atomic step,
// like data.i.said.what = 'what'; delete data.foo;
store.batch([
{ type: 'put', path: [], data: { i: said: { what: 'what' } } },
{ type: 'del', path: ['foo'] }
], function(){});
$ npm install level-pathwise
Instantiate a new pathwise store, using db.
Store object at path.
Options:
batch: LevelUP batch object to useGet the object at path with all its children.
Delete the object at path with all its children.
Options:
batch: LevelUP batch object to useGet the direct children of path.
Execute multiple get and del operations in one atomic batch. ops is an array with objects of type
{ type: 'put', path: path, data: data }{ type: 'del', path: path }MIT
FAQs
Turn a leveldb into one object of arbitrary size. Efficiently+atomically update+read parts
The npm package level-pathwise receives a total of 1 weekly downloads. As such, level-pathwise popularity was classified as not popular.
We found that level-pathwise 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
crates.io adds a Security tab backed by RustSec advisories and narrows trusted publishing paths to reduce common CI publishing risks.

Research
/Security News
A Chrome extension claiming to hide Amazon ads was found secretly hijacking affiliate links, replacing creators’ tags with its own without user consent.

Security News
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.