Skip to content
This repository has been archived by the owner on Aug 3, 2020. It is now read-only.

Commit

Permalink
Use uuid module in README, node-uuid is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjb committed Apr 5, 2018
1 parent ebeeaa7 commit e76831a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -114,10 +114,10 @@ Generating nonces
You can dynamically generate nonces to allow inline `<script>` tags to be safely evaluated. Here's a simple example:

```js
var uuid = require('node-uuid')
var uuidv4 = require('uuid/v4')

app.use(function (req, res, next) {
res.locals.nonce = uuid.v4()
res.locals.nonce = uuidv4()
next()
})

Expand Down

0 comments on commit e76831a

Please sign in to comment.