0.0.4 • Published 5 years ago

pieter v0.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

pieterspruijt

Version Downloads

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

Install

$ npm install pieter

Usage

var uniqid = require("@pieterspruijt/pieter");

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

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

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

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

Options

NameTypeDefault Value
prefixString''
suffixString''
0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago