Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange exports of module in node #3

Open
clemsos opened this issue Oct 22, 2012 · 0 comments
Open

Strange exports of module in node #3

clemsos opened this issue Oct 22, 2012 · 0 comments

Comments

@clemsos
Copy link

clemsos commented Oct 22, 2012

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

here an example in coffeescript

guessLanguage = require 'guesslanguage'
guessLanguage.guessLanguage.detect text, (language) ->
        console.log "language is : "+language
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant