Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickJS authored and ai committed Jul 8, 2018
1 parent 0935ba4 commit 7eea65a
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions README.md
Expand Up @@ -29,14 +29,14 @@ ShortId creates amazingly short non-sequential url-friendly unique ids. Perfect
var shortid = require('shortid');

console.log(shortid.generate());
//PPBqWA9
// PPBqWA9
```

Mongoose Unique Id
```js
_id: {
type: String,
'default': shortid.generate
'type': String,
'default': shortid.generate
},
```

Expand All @@ -59,7 +59,7 @@ $ grunt build open

### Example

```js
```bash
~/projects/shortid ❯ node examples/examples.js
eWRhpRV
23TplPdS
Expand Down Expand Up @@ -102,7 +102,9 @@ Here are some other projects that use shortId:

### API

`var shortid = require('shortid');`
```js
var shortid = require('shortid');
```

---------------------------------------

Expand All @@ -114,10 +116,10 @@ __Example__

```js
users.insert({
_id: shortid.generate()
name: ...
email: ...
});
_id: shortid.generate(),
name: '...',
email: '...'
});
```

---------------------------------------
Expand Down

0 comments on commit 7eea65a

Please sign in to comment.