JSPM

json-dereference-cli-v2

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 21
  • Score
    100M100P100Q60256F

Provides a cli interface to the json-schema-ref-parser library

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (json-dereference-cli-v2) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    JSON Dereference CLI v2

    Very simple CLI tool that wraps the excellent json-schema-ref-parser library.

    Node.js Package

    Usage

    # Using npx:
    npx json-dereference-cli-v2 -s <schema> [-i <spaces>] [-o <output>] [-t <type>]
    
    # Installing globally:
    npm install -g json-dereference-cli-v2
    json-dereference-v2 -s <schema>  [-i <spaces>] [-o <output>] [-t <type>]

    Note: The input file can either be json, or yaml / yml.

    Note: The output file types are either json or yaml / yml. This is determined from the file extension for the output file path passed in or using -t json|yaml when writing to stdout.