json-fingerprint
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "json-fingerprint", | ||
"type": "module", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "JSON fingerprint - create an unique hash for JSON data based on structure and value types", | ||
@@ -21,2 +21,5 @@ "repository": { | ||
"main": "src/main.mjs", | ||
"bin": { | ||
"json-fingerprint": "bin/main.mjs" | ||
}, | ||
"files": [ | ||
@@ -23,0 +26,0 @@ "src" |
# json-fingerprint | ||
Fingerprint a JSON by calculating the **hash** (default: sha256) based on the **shape** of the JSON and its **value types**. | ||
Fingerprint JSON by calculating the **hash** (default: sha256) based on the **shape** of the JSON and its **value types**. | ||
@@ -65,1 +65,22 @@ ## Install | ||
``` | ||
## CLI | ||
### hash a JSON file | ||
```shell | ||
npx json-fingerprint --file=package.json | ||
$ c0f87b9c30f33f44e9723c192d1797c161fb53e22ce06615cb6738d2bfb7b25d | ||
``` | ||
### pipe to json-fingerprint | ||
```shell | ||
cat package.json | npx json-fingerprint | ||
$ c0f87b9c30f33f44e9723c192d1797c161fb53e22ce06615cb6738d2bfb7b25d | ||
``` | ||
```shell | ||
wget -qO - https://github.com/chimurai/json-fingerprint/raw/main/package.json | npx json-fingerprint | ||
$ c0f87b9c30f33f44e9723c192d1797c161fb53e22ce06615cb6738d2bfb7b25d | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8550
8
145
86