Socket
Book a DemoInstallSign in
Socket

level-incr

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

level-incr

add atomic increment/decrement to a level db

latest
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

level-incr

add an atomic increment/decrement command to a level db

incr(db)

path the db object with incr and decr

incr(db,incrStart)

you may optionally oass incrStart if you need to do something like odd/even

db.incr(key,cb)

increment the key by one

db.incr(key,amount,cb)

increment the key by amount

db.decr(key,cb)

decrement the key by 1

db.decr(key,amoumt,cb)

decrement the key by amount

Keywords

level

FAQs

Package last updated on 05 Feb 2014

Did you know?

Socket

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.

Install

Related posts