UNPKG
honkit
Version:
latest (6.2.2)
6.2.2
6.2.1
6.2.0
6.1.8
6.1.7
6.1.6
6.1.5
6.1.4
6.0.4
6.0.3
6.0.2
6.0.1
6.0.0
5.1.5
5.1.4
5.1.3
5.1.2
5.1.1
5.1.0
5.0.0
4.0.8
4.0.7
4.0.5
4.0.4
4.0.3
4.0.2
4.0.1
4.0.0
3.7.5
3.7.4
3.7.3
3.7.2
3.7.1
3.7.0
3.6.23
3.6.22
3.6.21
3.6.20
3.6.19
3.6.18
3.6.17
3.6.16
3.6.15
3.6.14
3.6.13
3.6.12
3.6.11
3.6.10
3.6.9
3.6.8
3.6.7
3.6.6
3.6.5
3.6.4
3.6.3
3.6.2
3.6.1
3.6.0
3.5.5
3.5.4
3.5.3
3.5.2
3.5.1
3.5.0
3.4.1
3.4.0
3.3.11
3.3.10
HonKit is building beautiful books using Markdown.
github.com/honkit/honkit
honkit/honkit
honkit
/
lib
/
utils
/
genKey.js
14 lines
(13 loc)
•
305 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
let
lastKey =
0
;
/* Generate a random key @return {string} */
function
generateKey
(
) { lastKey +=
1
;
const
str = lastKey.
toString
(
16
);
return
"00000"
.
slice
(str.
length
) + str; }
exports
.
default
= generateKey;