Skip to content

Commit

Permalink
Add npm package installation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
richtr committed Oct 18, 2012
1 parent 6be477e commit 2ff1184
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ You can use this library in a web page as follows:
});
</script>

You can use this library in a Node.js project as follows (npm package coming soon!):
You can use this library in a Node.js project. This library is available as an npm package:

sudo npm install -g guesslanguage

Using this library in a Node.js project can be done as follows:

var guessLanguage = require('./lib/guessLanguage');

Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "guessLanguage.js",
"name": "guesslanguage",
"version": "0.1.0",
"description": "Guess the natural language of a run of text",
"keywords": [
"guesslanguage",
"guess_language"
"guesslanguage",
"guess_language",
"guesslanguage.js"
],
"repository": {
"type": "git",
Expand Down

0 comments on commit 2ff1184

Please sign in to comment.