SkillAgentSearch skills...

Uniqid

A super simple unique id based on timestamp.

Install / Use

/learn @markodenic/Uniqid
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

@mdenic/uniqid

npm (scoped) npm bundle size (minified) NPM npm GitHub top language GitHub last commit

A super simple, lightning fast unique id based on the current timestamp in milliseconds, with optional prefix and suffix.

Install

$ npm install @mdenic/uniqid

Usage

var uniqid = require("@mdenic/uniqid");

uniqid();
//=> "1558604880081" //string

uniqid('hello-');
//=> "hello-1558604880081" //string

uniqid('', '-world');
//=> "1558604880081-world" //string

uniqid('hello-', '-world');
//=> "hello-1558604880081-world" //string

Options

| Name | Type | Default Value | |--------------------------|---------------------------------------------|---------------| | prefix | String | '' | | suffix | String | '' |

View on GitHub
GitHub Stars6
CategoryDevelopment
Updated9mo ago
Forks1

Languages

JavaScript

Security Score

62/100

Audited on Jun 25, 2025

No findings