make-id.js 164 B

12345678910
  1. /**
  2. * @author oldj
  3. * @blog https://oldj.net
  4. */
  5. 'use strict'
  6. module.exports = () => {
  7. return (new Date()).getTime() + '-' + Math.floor(Math.random() * 1e6)
  8. }