Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

json-fingerprint

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-fingerprint - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

bin/main.mjs

5

package.json
{
"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"

23

README.md
# 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc