@requestnetwork/data-format
TypeScript icon, indicating that this package has built-in type declarations

0.20.0 • Public • Published

@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

Name Last version Last version Description
Invoice rnf_invoice 0.0.3 Format 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

/@requestnetwork/data-format/

    Package Sidebar

    Install

    npm i @requestnetwork/data-format

    Weekly Downloads

    301

    Version

    0.20.0

    License

    MIT

    Unpacked Size

    38.1 kB

    Total Files

    27

    Last publish

    Collaborators

    • request-bot
    • adamdowson
    • yomarion
    • aimensahnoun
    • mantisclone-requestnetwork
    • rodrigopavezi-request
    • bassgeta-rn