UNPKG

@fidaktk/ids

Version:

A lightweight, dependency-efficient ID generator package for Node.js and web projects. Supports BSON `ObjectId` (compatible with MongoDB/Mongoose), UUIDv4/v5, CUID2, and URL-safe slug IDs.

12 lines (11 loc) 824 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.slug = exports.cuidId = exports.uuidv5 = exports.uuidv4 = exports.ObjectId = void 0; const uuid_1 = require("./uuid"); Object.defineProperty(exports, "uuidv4", { enumerable: true, get: function () { return uuid_1.uuidv4; } }); Object.defineProperty(exports, "uuidv5", { enumerable: true, get: function () { return uuid_1.uuidv5; } }); const cuid_1 = require("./cuid"); Object.defineProperty(exports, "cuidId", { enumerable: true, get: function () { return cuid_1.cuidId; } }); Object.defineProperty(exports, "slug", { enumerable: true, get: function () { return cuid_1.slug; } }); const objectid_1 = require("./objectid"); Object.defineProperty(exports, "ObjectId", { enumerable: true, get: function () { return objectid_1.ObjectId; } });