UNPKG
dino
Version:
latest (0.3.5)
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.3
0.2.2
0.2.1
0.2.0
0.1.2
0.1.1
0.1.0
0.0.1
A simple DynamoDB object modeler for Node.js.
christophercliff/dino
dino
/
lib
/
types
/
id.js
10 lines
(7 loc)
•
224 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
var
uuid =
require
(
'node-uuid'
), _ =
require
(
'underscore'
);
module
.
exports
=
exports
= _.
extend
({},
require
(
'./string'
), {
defaultValue
:
function
(
) {
return
uuid.
v4
().
replace
(
/\-/g
,
''
); } });