📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

@requestnetwork/data-format

Package Overview
Dependencies
Maintainers
6
Versions
694
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@requestnetwork/data-format

Data format for the Request Network protocol.

0.20.0
latest
Source
npm
Version published
Weekly downloads
534
-50.92%
Maintainers
6
Weekly downloads
 
Created
Source

@requestnetwork/data-format

@requestnetwork/data-format is a typescript library part of the Request Network protocol. It is a JSON Schema library providing standard for the data of the Request Network protocol. It also provide a javascript entry point to validate a given JSON.

Installation

npm install @requestnetwork/data-format

Usage

import * as dataFormat from '@requestnetwork/data-format';

let result = data - format.validate(A_JSON_OBJECT);

if (!result.valid) {
  // use the errors from result.errors
}

Available JSON Schema

NameLast versionLast versionDescription
Invoicernf_invoice0.0.3Format to create an invoice

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Read the contributing guide

License

MIT

Keywords

request

FAQs

Package last updated on 03 Apr 2025

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