Skip to content

Instantly share code, notes, and snippets.

View dustintownsend's full-sized avatar

Dustin Townsend dustintownsend

View GitHub Profile
Verifying my Blockstack ID is secured with the address 1NHv9aJh9PpU6y52MLpdUb65JUQrn9au1s https://explorer.blockstack.org/address/1NHv9aJh9PpU6y52MLpdUb65JUQrn9au1s

Keybase proof

I hereby claim:

  • I am dustintownsend on github.
  • I am dustintownsend (https://keybase.io/dustintownsend) on keybase.
  • I have a public key ASCvAeT_nH2KCYER2J4aQWdtNPl6f5HzW91JJAkExRTBsgo

To claim this, I am signing this object:

@dustintownsend
dustintownsend / NedbStore.js
Last active October 26, 2020 06:02
NedbStore for diamondio/better-queue
const uuid = require('node-uuid');
const extend = require('extend');
const path = require('path');
const Datastore = require('nedb');
function NedbStore(name, databasePath) {
this.databasePath = databasePath;
this.datastore = new Datastore({
filename: this.databasePath,
autoload: true,