Open clemsos opened 11 years ago
After install with NPM npm install guesslanguage I have strange behaviour when importing. Seems like the module exports a JS object so i have to duplicate and write guessLanguage.guessLanguage.detect
npm install guesslanguage
guessLanguage.guessLanguage.detect
here an example in coffeescript
guessLanguage = require 'guesslanguage' guessLanguage.guessLanguage.detect text, (language) -> console.log "language is : "+language
After install with NPM
npm install guesslanguage
I have strange behaviour when importing. Seems like the module exports a JS object so i have to duplicate and writeguessLanguage.guessLanguage.detect
here an example in coffeescript