UNPKG
2ch-id-generator
Version:
latest (1.0.0)
1.0.0
A generator for anonymous user id like as 2ch
github.com/2ch-id-generator
2ch-id-generator
/
example.js
16 lines
(12 loc)
•
217 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
'use strict'
// require module
const
idGenerator =
require
(
'./index'
)
// generate id
const
id =
idGenerator
({
ip
:
'127.0.0.1'
,
key
:
'news4vip'
,
rand
:
'fusianasan'
,
length
:
9
})
// output id
console
.
log
(id)