🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

flumecli

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flumecli

create a command line interface for a flumedb.

latest
Source
npmnpm
Version
0.3.0
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

flumecli

create a command line interface for a flumedb.

first create your flumedb with installed views, etc, as shown on the flumedb readme. Then, simply pass the db instance to flumecli

//db.js
var Flume = require('flumedb')
var CLI = require('flumecli')

var db = Flume(log)
  .use(name, view)...

if(!module.parent) CLI(db)

currently, flumecli assumes it makes sense to output your data as JSON objects. flume cli can call any method on your database, including on views.

node db.js stream # dump whole stream
node db.js get {seq} # get value at {seq}
node db.js append --foo bar # append an object {"foo": "bar"} (using minimist format)

# also, methods on views can be called!
node db.js {name}.{method}

any arguments in minimist format will be parsed, this is equivalent to javascript, but is also an ordinary command line switch style.

License

MIT

FAQs

Package last updated on 08 Nov 2016

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