0.1.3 • Published 6 years ago

ipfsconsortiumdata v0.1.3

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

IPFSConsortiumData

This repo contains the JSON schemas for the IPFS Pinning Consortium metadata

Build Status semantic-release

Install

npm install ipfsconsortiumdata

Usage

NodeJS

const ipfsconsortiumdata = require('ipfsconsortiumdata');

const s = JSON.parse(<your JSON string>);

ipfsconsortiumdata.validate(s)
	.then(() => {
		// file is valid
	})
	.catch((e) => {
		// file is invalid - e contains the validation errors
	});

Command line

When installing this module you will get a command line utility ipfsconsortiumvalidate to validate a JSON file.

ipfsconsortiumvalidate examples/metadata-consortium.json

This will exit with 0 if the file is valid - 1 if the file is invalid and will print the validation errors on stdout.

Notes

The schema's are located in spec

Examples can be found in examples

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago