scio-parser-json

1.0.1 • Public • Published

scio-parser-json

JSON config parser for Scio.

Translates a JSON blob like the below into a Scio schema:

{
  "google.com": {
    "address": "google.com",
    "services": [
      "ping",
      "http"
    ]
  },
  "reddit.com": {
    "address": "reddit.com",
    "services": [
      {
	"ping": {
	  "timeoutDanger": 300
	}
      },
      "http"
    ]
  }
}

NOTES:

  • Almost all properties of plugins are optional. if specified as strings (as http is above) all default options are assumed.
  • schedule is processed by human-to-cron

Readme

Keywords

Package Sidebar

Install

npm i scio-parser-json

Weekly Downloads

0

Version

1.0.1

License

GPLv2

Last publish

Collaborators

  • hash-bang