Socket
Book a DemoInstallSign in
Socket

uuid-cbr

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uuid-cbr

Js библиотека для генирации uuid по требованию ЦБ

0.0.3
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

UUID-CBR

Js библиотека для генирации uuid по требованию ЦБ

Пример использования

Генерация uuid

const { generate } = require("uuid-cbr");
const nowDatetime = new Date("2021-09-24T09:55:09.332Z")
const uuidByDate = generate(nowDatetime)
console.log(uuidByDate); // 80c57a90-1d1d-11ec-adda-26dbb65f1526-0

const uuidNowDate = generate()
console.log(uuidNowDate); // 3ce3d880-1d1e-11ec-b690-d07329e2e226-5

Проверка валидации

const { isValid } = require("uuid-cbr");
const isValidUUID = isValid('3ce3d880-1d1e-11ec-b690-d07329e2e226-5')
console.log(isValidUUID) //true

Преобразование uuid к дате

const { toDate } = require("uuid-cbr");
const datetime = toDate('80c57a90-1d1d-11ec-adda-26dbb65f1526-0')
console.log(datetime) //2021-09-24T09:55:09.332Z

Keywords

uuid

FAQs

Package last updated on 14 Dec 2022

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.