1.0.2 • Published 2 years ago

json-uuid v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

json-uuid

This is a toolkit for generating JSON unique IDs

Usage examples

const jsonuuid = require('json-uuid')

let a = [1, 4, 2, 'a', {
    c: 1, a: 1, f: {
        "3r": 1,
        "1r": 1,
        "2r": {
            "f1": 3,
            "f3": 3,
            "f2": 3,
        },
    }
}]

let b = [1, 4, 2, 'a', {
    c: 1, a: 1, f: {
        "2r": {
            "f3": 3,
            "f2": 3,
            "f1": 3,
        },
        "3r": 1,
        "1r": 1,
    }
}]

if (jsonuuid.id(a) === jsonuuid.id(b)) {
    console.log('yes');
} else {
    console.log('no')
}
1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago