Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Install ```node-uuid``` package
- ```javascript
- npm install --save node-uuid
- ```
- Or ```yarn```
- ```javascript
- yarn add node-uuid
- ```
- 2. Import ```v4``` function
- ```javascipt
- import { v4 } from 'node-uuid';
- ```
- - You can use it just by calling
- ```javascript
- {id: v4()}
- ```
Add Comment
Please, Sign In to add comment