I try to make a uuid (v 3.0.1) package work in Node/Typescript app, but I\'m not sure what should I import and how to use it.
uuid
This is index.d.ts
index.d.ts
Yes, here is code from my project:
import { v4 as uuid } from 'uuid'; const id: string = uuid();
Note: to install definitions it is required to run
npm install --save-dev @types/uuid