Skip to content

Commit

Permalink
Adds npm install diceware to README
Browse files Browse the repository at this point in the history
  • Loading branch information
jatenate committed May 26, 2012
1 parent 6739bfc commit a4047c6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Expand Up @@ -4,6 +4,12 @@

It's worth noting that [it's not recommended](http://world.std.com/~reinhold/dicewarefaq.html#electronic) to use a computer to generate a Diceware phrase. If you want to generate passphrases in node.js, check out [https://github.com/shimaore/password](https://github.com/shimaore/password) instead.

```
npm install diceware
```

```
diceware = require('diceware');
console.log(diceware()); // by default generates a 5 word phrase
console.log(diceware(10)); // but number of words can optionally be specified
console.log(diceware(10)); // but number of words can optionally be specified
```

0 comments on commit a4047c6

Please sign in to comment.