New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

json-checksum

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-checksum

one way checksum ticket to hongkong

latest
Source
npmnpm
Version
0.1.4
Version published
Weekly downloads
296
17.93%
Maintainers
1
Weekly downloads
 
Created
Source

JSON-checksum

Travis

calculate your json object checksum (supports: SHA256)

USAGE

node.js

npm install json-checksum

amd

require(["json-checksum"],function(checksum){})

wild front

<script src="json-checksum.js"></script>

<script>
	var obj={
		"i": "am sleepy"
	};
	var checksum=checksum(obj);
	console.log(checksum);
</script>

Why JSON-checksum is useful?

these two JSON-object below, is different

{
	"a": "aaaaa",
	"b": "bbbbb"
}

{
	"b": "bbbbb",
	"a": "aaaaa"
}

So?

I sorted it

Why SHA256

Because I want it. need other? fork yourself.

Note

test yourself. works for me.

License

MIT

FAQs

Package last updated on 25 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts