UNPKG
@tomei/product
Version:
latest (0.32.65)
0.32.65
0.32.64
0.32.63
0.32.62
0.32.61
0.32.59
0.32.57
0.32.55
0.32.54
0.32.53
0.32.52
0.32.51
0.32.50
0.32.49
0.32.48
0.32.47
0.32.46
0.32.45
0.32.44
0.32.43
0.32.42
0.32.39
0.32.37
0.32.36
0.32.35
0.32.34
0.32.33
0.32.31
0.32.30
0.32.29
0.32.28
0.32.27
0.32.26
0.32.25
0.32.24
0.32.23
0.32.22
0.32.21
0.32.20
0.32.19
0.32.18
0.32.17
0.32.16
0.32.15
0.32.13
0.32.12
0.32.10
0.32.9
0.32.8
0.32.7
0.32.6
0.32.5
0.32.4
0.32.3
0.32.2
0.32.1
0.32.0
0.31.0
0.30.0
0.29.0
0.28.4
0.28.3
0.28.2
0.28.1
0.28.0
0.27.0
0.26.1
0.26.0
0.25.1
0.25.0
0.24.1
0.24.0
0.23.3
0.23.2
0.23.1
0.23.0
0.22.0
0.21.1
0.21.0
0.20.1
0.20.0
0.19.2
0.19.0
0.18.0
0.17.1
0.17.0
0.16.4
0.16.3
0.16.2
0.16.0
0.15.1
0.14.1
0.14.0
0.13.0
0.12.3
0.11.0
0.10.0
0.9.0
0.8.16
0.8.15
0.8.14
0.8.13
0.8.12
0.8.11
0.8.10
0.8.9
0.8.8
0.8.7
0.8.6
0.8.1
0.8.0
0.7.3
0.7.2
0.7.1
0.7.0
0.6.12
0.6.11
0.6.9
0.6.6
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.0
0.4.2
0.4.1
0.4.0
0.3.0
0.1.0
NestJS package for product module
gitlab.com/tomei-csms/product
@tomei/product
/
src
/
helpers
/
cuid.ts
12 lines
(8 loc)
•
170 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
{ init }
from
'@paralleldrive/cuid2'
;
const
createId =
init
({
length
:
10
, });
const
cuid
= (
) => {
return
createId
().
toUpperCase
(); };
export
default
cuid;