Skip to content

sebastianlzy/json-hashable

Repository files navigation

Hashable JSON

Build Status Coverage Status

Introduction

A stable hashable JSON


Install

npm install --save json-hashable

Usage

import hashable from "json-hashable";
import md5 from "md5";

const objA = md5(hashable({ b: "bbb", a: { c: "ccc", d: "ddd" } }));
const objB = md5(hashable({ a: { d: "ddd", c: "ccc" }, b: "bbb" }));

return objA === objB;

Any feedbacks or contributions are welcome!

About

stable hashable json

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published