0.0.1 • Published 7 years ago

franz-validate v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

franz-validate CircleCI

validate franz.yml files

Install

$ npm install --save franz-validate

Usage

const franzValidate = require('franz-validate')

const franzFile = {
  service: {
    port: 3000,
    environment: {
      node: 7
    }
  },
  endpoints: {
    'get-users': {
      url: '/get-users',
      method: 'GET'
    }
  }
}

franzValidate(franzFile)
// => true

API

franzValidate(franz, options)

Returns an boolean

franz

Type: object Required

franz file object

options

Type: object

docker

Type: object Default: false

true if project is using docker.

License

MIT © Bu Kinoshita