Skip to content

hootinwang/json-uuid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json-uuid

This is a toolkit for generating JSON unique IDs

NPM version NPM download Github stars

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')
}

About

This is a toolkit for generating JSON unique IDs

Resources

License

Stars

Watchers

Forks

Packages

No packages published