json-hashable

1.0.5 • Public • Published

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!

Readme

Keywords

none

Package Sidebar

Install

npm i json-hashable

Weekly Downloads

2

Version

1.0.5

License

MIT

Last publish

Collaborators

  • sebastian.lzy