Skip to content
The svrx plugin for json-viewer
JavaScript HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
example
test
.babelrc
.eslintignore
.eslintrc
.gitignore
.travis.yml
LICENSE
README.md
client.js
index.css
index.js
package-lock.json
package.json
webpack.config.js

README.md

svrx-plugin-json-viewer

svrx npm

The svrx plugin for json-viewer

This plugin will convert the JSON response to a json viewer's page, but it won't affect the response via ajax or fetch.

Usage

Please make sure that you have installed svrx already.

Via CLI

svrx -p json-viewer

Via API

const svrx = require('@svrx/svrx');

svrx({ plugins: [ 'json-viewer' ] }).start();

Options

{
    type: {
      description: 'Enable data type labels prefix values',
      default: false,
      type: 'boolean'
    },
    collapsed: {
      default: false,
      description: 'When set to true, all nodes will be collapsed by default. Use an integer value to collapse at a particular depth.',
      anyOf: [
        {
          type: 'number',
        },
        {
          type: 'boolean',
        },
      ],
    },
    theme: {
      type: 'string',
      description: 'RJV supports base-16 themes.',
    },
}

License

MIT

You can’t perform that action at this time.