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

@fireflysemantics/cuid

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fireflysemantics/cuid

Collision-resistant ids optimized for horizontal scaling and performance. For node and browsers.

latest
Source
npmnpm
Version
1.0.10
Version published
Weekly downloads
12
20%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status

Cuid

Install

npm i -S @fireflysemantics/cuid
npm i -S tslib

Usage

This version of cuid is built mainly for the Typescript / Browser use case only. For node or react native, use cuid.

Identifiers generated with cuidSlug will be shorter:

import { cuid, cuidSlug as slug } from '@fireflysemantics/cuid';
console.log( `cuid: ${cuid()}`);
console.log( `slug: ${slug()}` );

Stackblitz Demo

Generating Collision Resistant Fast Unique IDs with Typescript

Build

Run npm run b to build the project. The build artifacts will be stored in the dist/ directory.

Publishing

After building your library with npm run p.

Running unit tests

Run npm t to execute the unit tests via delightful Jest.

This version of cuid is built mainly for the Typescript / Browser use case only. For node or react native, use cuid.

Build

Run npm run b to build the project. The build artifacts will be stored in the dist/ directory.

Publishing

After building your library with npm run p.

Running unit tests

Run npm t to execute the unit tests via delightful Jest.

Keywords

guid

FAQs

Package last updated on 14 Mar 2020

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