开发者社区> 镜像站> NPM> mongo-uuid-helper
mongo-uuid-helper
NodeJS UUID helper based on official C# driver
Last updated 3 years ago by confuser .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install mongo-uuid-helper 
SYNC missed versions from official npm registry.

Mongo UUID Helper

Build Status Coverage Status Known Vulnerabilities

A NodeJS UUID helper, based on the C# driver UUID helper

Currently only implements JUUID and CSUUID, PR's welcome.

Installation

npm install mongo-uuid-helper

Usage

const uuidHelper = require('mongo-uuid-helper')

const juuidBin = uuidHelper.juuidStringToBin('ae51c849-3f2a-4a37-986d-55ed5b02307f')
const csuuidBin = csuuidHelper.csuuidStringToBin('0c552563-77d2-4562-a9bd-739ba2c6e1fe')
const jUUID = uuidHelper.binToJUUIDString(juuidBin)
const csUUID = uuidHelper.binToCSUUIDString(csuuidBin)

Current Tags

  • 1.0.0                                ...           latest (3 years ago)

2 Versions

  • 1.0.0                                ...           3 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (4)
Dependents (0)
None