Socket
Book a DemoInstallSign in
Socket

dh

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dh

A distributed hash. Simply a wrapper around the Redis hash.

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

Node.js - dh

dh is a distributed hash. Simply a wrapper around the Redis hash.

Install

npm install [-g] dh

Programatically

var dh = require('dh')

dh.create({name: 'myhash'}, function(err, h) {
  h.set('key1', 'data1')
})

dh-import

Imports a CSV (two-field) file into the hash.

  Usage: dh-import [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 [hashName]   name of the hash

dh-export

Exports to a CSV (two-field).

  Usage: dh-export [options]

  Options:

    -h, --help               output usage information
    -V, --version            output the version number
    -f, --file [outputFile]  output file otherwise the default is STDOUT
    -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 [hashName]    name of the hash

note: calling the -f flag is insanely slow. Just pipe stdout to a file. I'll probably remove this flag.

License

Licensed under MIT. See LICENSE for more details.

Copyright (c) 2012-2013 JP Richardson

Keywords

redis

FAQs

Package last updated on 12 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