inflection icon indicating copy to clipboard operation
inflection copied to clipboard

A port of the Rails/ActiveSupport inflector to JavaScript

Results 3 inflection issues
Sort by recently updated
recently updated
newest added

Inflection module falls back on this.inflection if exports is undefined.

Code: ``` var singularize = require("inflection").singularize; console.log(singularize('bananas')); ``` Output: ``` /blah/node_modules/inflection/lib/inflection.js:271 return this._apply_rules( str, singular_rules, uncountable_words, singul ^ TypeError: Object # has no method '_apply_rules' at inflector.singularize (/blah/node_modules/inflection/lib/inflection.js:271:19) at Object....

here's the stack trace from running in node repl: ``` node> var humanize = require('/usr/local/src/inflection/lib/inflection').humanize; [Function] node> humanize('find_name') ReferenceError: HUMANS is not defined at Object. (/usr/local/src/inflection/lib/inflection.js:199:16) ```