Skip to content

Add export const uuid = v4 #540

@syabro

Description

@syabro

Is your feature request related to a problem? Please describe.

For all libraries I use I don't have to write imports manually in WebStorm. All I have to do just write code like const x = doSomething<ALT + Enter> and it shows me hint Add "import doSomething from XXX'?

With export const v4 I have to write manually import as in manual import { v4 as uuidv4 } from 'uuid';. It's frustrating.

Describe the solution you'd like

Change v4() name or add one more export as export const uuid4. So after import it would be very clear what is it about and why.

Describe alternatives you've considered

  • Writing manually :(
  • Adding somewhere utils/uuid.ts with
export { v4 as uuid4} from 'uuid'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions