npm

npm’s 2019 JavaScript ecosystem survey analysis is now available!Get your copy here »

canonicalize

1.0.1 • Public • Published

Build Status Coverage Status

canonicalize

JSON canonicalize function. Creates crypto safe predictable canocalization of JSON as defined by draft-rundgren-json-canonicalization-scheme

Usage

JSON.canonicalize = require('canonicalize');
 
const json = {
  "1": {"f": {"f": "hi","F": 5} ,"\n": 56.0},
  "10": { },
  "": "empty",
  "a": { },
  "111": [ {"e": "yes","E": "no" } ],
  "A": { }
}
 
console.log(JSON.canonicalize(json));

Install

npm install canonicalize --save

Test

npm test

install

npm i canonicalize

Downloadsweekly downloads

62

version

1.0.1

license

Apache-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability