Added node-uuid and tests

This commit is contained in:
Jeff May
2014-04-22 22:50:05 -04:00
parent a1c5b46743
commit 6dc732cd0e
2 changed files with 71 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
/// <reference path="node-uuid.d.ts" />
var uid1: string = uuid.v1()
var uid2: string = uuid.v2()
var uid3: string = uuid.v3()
var uid4: string = uuid.v4()
var options: UUIDOptions = {
node: [],
clockseq: 2,
nsecs: 3,
msecs: new Date()
}
var padding: number[] = [0, 1, 2]
var offset: number = 15
uuid.v1(options, padding, offset)
uuid.v2(options, padding, offset)
uuid.v3(options, padding, offset)
uuid.v4(options, padding, offset)