Skip to content

sophiabits/ksuid-edge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ksuid-edge

A drop-in replacement for the excellent ksuid module for environments that don't have Buffer or node:util.

Installation

$ pnpm add ksuid-edge

Usage

The API should be 1:1 compatible with ksuid. Check out their usage instructions here for a more detailed run-through of the API.

import KSUID from 'ksuid';

const ksuidFromSync = KSUID.randomSync();
console.log(ksuidFromSync.toString()) // "KSUID { 2T9QkbWRq71cvp0KeN5YZJo9Kpu }"

About

Edge and browser-compatible KSUID generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published