Home:ALL Converter>hashids: ReferenceError: require is not defined

hashids: ReferenceError: require is not defined

Ask Time:2014-11-13T17:16:48         Author:skip

Json Formatter

The following gives me an issue saying ReferenceError: require is not defined

var Hashids = require('hashids'), hashids = new Hashids('my salt', 8); 

I am using this hashids.js class.

The description says that this is a client-side version of Node.js version. I am not using bower so I just load the hashids.js on the page.

Are there any other javascript files I need to have this hashids.js is dependent on?

How do I get it working?

Author:skip,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/26905164/hashids-referenceerror-require-is-not-defined
yy