heydenberk / stochator

Little utility library for random value generation.
https://github.com/heydenberk/stochator/
Mozilla Public License 2.0
126 stars 8 forks source link

Node.js usage broken due to lowdash filename case #38

Closed chrisl8 closed 8 years ago

chrisl8 commented 8 years ago

In order to use the current version of stachator in Node.js, after installing I had to edit
node_modules/stochator/build/index.js and change:
var _lodashIsFunction = require("lodash.isFunction"); to: var _lodashIsFunction = require("lodash.isfunction");

and
var _lodashIsString = require("lodash.isString"); to: var _lodashIsString = require("lodash.isstring");

Apparently the node.js versions of isFunction and isString are in lowercase in the filesystem.

heydenberk commented 8 years ago

Thanks again for the fix! It's merged.