h2non / jshashes

Fast and dependency-free cryptographic hashing library for node.js and browsers (supports MD5, SHA1, SHA256, SHA512, RIPEMD, HMAC)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Server installation instructions wrong

robhicks opened this issue · comments

npm install jshashes results in the following server directory structure under express:

node_modules/jshashes/server/lib

your use instructions suggest using:

var Hashes = require('./lib/hashes');

This throws a cannot find module error

commented

Thanks for your report.

I changed the example in order to remove this confussion, thinking about the normal scenario will be the user install jsHashes via NPM.

If you locate jsHashes on a custom location, you only must change the module path.