Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

dq

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dq

A stupidly simple distributed priority data queue built on Redis.

Source
npmnpm
Version
0.1.1-e
Version published
Maintainers
1
Created
Source

Node.js - dq

dq is a stupidly simple data queue built on Redis. It is not a messaging queue or a job queue. If you want a job queue, you should checkout [Kue][kue].

Install

npm install dq

Usage

Programatically

dq = require('dq')

dq.create name: 'mydata', (err, q) ->
  q.enq('some data')
  q.enq('smore data... hehehe')

(More to come later.)

Command Line

` Usage: dq [options]

Options:

-h, --help                  output usage information
-V, --version               output the version number
-f, --file [inputFile]      input file otherwise the default is STDIN
-h, --host [host]           host of redis server, the default is localhost
-pw, --password [password]  password of redis server
-p, --port [number]         port of redis server, the default is 6379
-n, --name [queueName]      name of the queue
-s, --shuffle               insert in random order

`

Examples:

$ cat my_data_set.txt | dq --name mydataset

or..

$ dq --name mydataset --file my_data_set.txt

TODO

  • fluent interface
  • REST API

License

Licensed under MIT. See LICENSE for more details.

Copyright (c) 2012 JP Richardson

FAQs

Package last updated on 14 Sep 2013

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