0.0.5 ā¢ Published 5 years ago
makeuid v0.0.5
š makeuid
āļø Tiny utility to generate a unique id based on date and time
npm i makeuid --save
Usage
import { makeuid, randStr } from 'makeuid'
// or
var { makeuid, randStr } = require('makeuid')
Or include it via jsDelivr CDN:
<script src="https://cdn.jsdelivr.net/npm/makeuid@0.0.5/index.min.js"></script>
mk.makeuid() // 2019I10P30T13n33v35
Methods & Examples
- makeuid() : String
makeuid() // 2019I10P30T13n33v35
- randStr(length : number) : String
randStr(5) // gJisd
License
MIT