Yomguithereal / clj-fuzzy

A handy collection of algorithms dealing with fuzzy strings and phonetics.
http://yomguithereal.github.io/clj-fuzzy/
MIT License
262 stars 27 forks source link

Repo needs `index.js` so that it can be invoked with `require` #31

Closed bitsofparag closed 9 years ago

bitsofparag commented 9 years ago

To reproduce, run var fuzzy = require('clj-fuzzy') in requirebin.com - throws error.

Yomguithereal commented 9 years ago

Hello @paragmajum, I just tried your example in requirebin.com and it does work.

var fuzzy = require('clj-fuzzy');

console.log(fuzzy.phonetics.metaphone('Michael'));
>>> MXL
bitsofparag commented 9 years ago

Ah ok! I had used var clj_fuzzy as the variable which was breaking the code (instead of var fuzzy). I guess we can close this.

Yomguithereal commented 9 years ago

No problem @paragmajum.