Update README.md
This commit is contained in:
parent
2631d3d0cb
commit
8c2655d5fa
19
README.md
19
README.md
|
@ -46,9 +46,8 @@ npm install --save human-readable-ids
|
||||||
```javascript
|
```javascript
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var hri = require('human-readable-ids').hri
|
var hri = require('human-readable-ids').hri;
|
||||||
, i
|
var i;
|
||||||
;
|
|
||||||
|
|
||||||
// generate 100 random ids
|
// generate 100 random ids
|
||||||
for (i = 0; i < 100; i += 1) {
|
for (i = 0; i < 100; i += 1) {
|
||||||
|
@ -62,15 +61,6 @@ for (i = 0; i < 100; i += 1) {
|
||||||
bower install --save human-readable-ids
|
bower install --save human-readable-ids
|
||||||
```
|
```
|
||||||
|
|
||||||
```jade
|
|
||||||
html
|
|
||||||
head
|
|
||||||
script(src="bower_components/knuth-shuffle/index.js")
|
|
||||||
script(src="bower_components/human-readable-ids/assets/animals.js")
|
|
||||||
script(src="bower_components/human-readable-ids/assets/adjectives.js")
|
|
||||||
script(src="bower_components/human-readable-ids/index.js")
|
|
||||||
```
|
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<script src="bower_components/knuth-shuffle/index.js"></script>
|
<script src="bower_components/knuth-shuffle/index.js"></script>
|
||||||
<script src="bower_components/human-readable-ids/assets/animals.js"></script>
|
<script src="bower_components/human-readable-ids/assets/animals.js"></script>
|
||||||
|
@ -82,9 +72,8 @@ html
|
||||||
;(function (exports) {
|
;(function (exports) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var hri = exports.humanReadableIds || require('human-readable-ids').hri
|
var hri = exports.humanReadableIds || require('human-readable-ids').hri;
|
||||||
, i
|
var i;
|
||||||
;
|
|
||||||
|
|
||||||
for (i = 0; i < 100; i += 1) {
|
for (i = 0; i < 100; i += 1) {
|
||||||
console.log(hri.random());
|
console.log(hri.random());
|
||||||
|
|
Loading…
Reference in New Issue