New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@fczbkk/uuid4

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fczbkk/uuid4

Generator and validator for Universally Unique Identifier v4 (random).

latest
Source
npmnpm
Version
3.0.0
Version published
Maintainers
1
Created
Source

UUID4

Generator and validator for Universally Unique Identifier v4 (random).

How to use

Install the library via NPM:

npm install @fczbkk/uuid4 --save

Then import to your Javascript:

import {genrate, validate} from '@fczbkk/uuid4';

// generate UUID4 identifier
const my_id = generate();  // e.g. 4414b07a-d8ae-4763-a7e2-aa66cb0dc3d0

// validate UUID identifier
validate(my_id);  // true
validate('xxx');  // false

Documentation

validate

Checks if provided id is valid UUID4.

Parameters

  • id string

Returns boolean

generate

Generates new valid UUID4 identifier.

Returns string

Bug reports, feature requests and contact

If you found any bugs, if you have feature requests or any questions, please, either file an issue at GitHub or send me an e-mail at riki@fczbkk.com.

License

UUID4 is published under the MIT license.

FAQs

Package last updated on 18 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts