<commit_before>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

```js
var dq = require('dq')

dq.create({name: 'mydata'}, function(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
      -a, --auth [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<commit_msg>Correction in doc. Closes #4.<commit_after>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

```js
var dq = require('dq')

dq.create({name: 'mydata'}, function(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
      -a, --auth [password]       password of redis server
      -p, --port [number]         port of redis server, the default is 6379
      -q, --queue [queueName]      name of the queue
      -s, --shuffle               insert in random order
{'fraction_non_alphanumeric': 0.1296745993200583, 'fraction_numerical': 0.004371053909664886, 'mean_word_length': 1.9811866859623735, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5461696', 'n_tokens_mistral': 655, 'n_tokens_neox': 606, 'n_words': 251}