Guest User

Untitled

a guest
Jul 20th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. 1. Install ```node-uuid``` package
  2.  
  3. ```javascript
  4. npm install --save node-uuid
  5. ```
  6. Or ```yarn```
  7. ```javascript
  8. yarn add node-uuid
  9. ```
  10.  
  11. 2. Import ```v4``` function
  12.  
  13. ```javascipt
  14. import { v4 } from 'node-uuid';
  15. ```
  16. - You can use it just by calling
  17. ```javascript
  18. {id: v4()}
  19. ```
Add Comment
Please, Sign In to add comment