npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

pfraze-lev

v3.3.1

Published

CLI & REPL for LevelDB

Downloads

11

Readme

STATUS

Join the chat at https://gitter.im/hij1nx/lev BETA

SYNOPSIS

A simple and convenient commandline tool and REPL for leveldb.

FEATURES

  • REPL with colorized tab-completion and zsh/fish style key suggestions
  • REPL automatically saves and reloads REPL history

SCREENSHOT

screenshot

REPL COMMANDS

Use upper or lower case for the following commands.

GET <key>

Get a key from the database.

PUT <key> <value>

Put a value into the database. If you have keyEncoding or valueEncoding set to json, these values will be parsed from strings into json.

DEL <key>

Delete a key from the database.

LS [sublevel]

Get all the keys or values in the current range.

Opts:

  • [sublevel] A sublevel filter, eg ls users
  • -v/--values Include values
  • -s/--select <attr> Filter attributes down to given attribute(s). Can be used more than once. Eg: ls -s username -s email
  • -f/--filter <attr>=<value> Filter entries down to given attribute=value match(es). Can be used more than once. Eg ls -f username=bob -f [email protected]

START <key-pattern>

Defines the start of the current range. You can also use GT or GTE.

END <key-pattern>

Defines the end of the current range. You can also use LT or LTE.

SUB <name>

Sugar to set START and END to the pattern for the given sub-level.

SUBS

Tries to guess the full listing of sub-levels in the DB.

LIMIT <number>

Limit the number of records in the current range (defaults to 5000).

REVERSE

Reverse the records in the current range.

CLI COMMANDS

These all match the parameters used with levelup. The default encoding for the database is set to json.

--start <key-pattern>

Specify the start of the current range. You can also use gt or gte.

--end <key-pattern>

Specify the end of the current range. You can also use lt and lte.

--values

Only list the all of the values in the current range. Emit as a new-line delimited stream of json.

--keys

Only list all of the keys in the current range. Will tabularize the output.

--keyEncoding <string>

Specify the encoding for the keys.

--valueEncoding <string>

Specify the encoding for the values.

--limit <number>

Limit the number of records emitted in the current range.

--reverse

Reverse the stream.