UNPKG
@tomei/customer-base
Version:
latest (0.1.8)
test (0.1.8-test.1)
0.1.8
0.1.8-test.1
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
Tomei Customer Base Package
gitlab.com/tomei-package/customer-base
@tomei/customer-base
/
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;