ivanakimov/hashids.node.js — pull request #15 by rfink (2014-09-19 18:25:21+00:00)
Title: Add auto initialize new instance if not called with 'new' operator

Auto-initialize a new instance of Hashids in case it wasn't initialized with "new". E.g.

var hash = require('hashids');
var val = hash('mysalt').encode('12345');

It's a small change but would be cool to have.