
Product
Introducing Immutable Scans
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.
level-pathwise
Advanced tools
Work In Progress,
Nested storage engine, basically letting you treat your leveldb like one big object which you can select subjections of.
import Pathwise from 'level-pathwise';
import { default as level } from 'level';
const store = new Pathwise(level('db'));
store.put([], {
foo: {
bar: ['beep', 'boop'],
baz: 'bleep'
}
}, err => {
store.get([], (err, obj) => {
// obj => {"foo":{"bar":{"0":"beep","1":"boop"},"baz":"bleep"}}
store.del(['foo', 'bar'], err => {
store.get([], (err, obj) => {
// obj => {"foo":{"baz":"bleep"}}
store.children([], console.log);
// => ['foo']
store.get(['foo', 'baz'], (err, obj) => {
// obj => "bleep"
store.batch([
{ type: 'put', path: [], data: { i: said: { what: 'what' } } },
{ type: 'del', path: ['foo'] }
], console.log);
});
});
});
});
});
$ npm install level-pathwise
Instantiate a new pathwise store, using db.
Store object at path.
Get the object at path with all its children.
Delete the object at path with all its children.
Get 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
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.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.