Permalink
Browse files

Adds npm install diceware to README

  • Loading branch information...
1 parent 6739bfc commit a4047c654dfa2b7e04e7e84fff53c8d07b26169d @jatenate committed May 26, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 README.md
View
@@ -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.