alf-validator

Extremely fast API Log Format (ALF) validator using JSON Schema

Usage no npm install needed!

<script type="module">
  import alfValidator from 'https://cdn.skypack.dev/alf-validator';
</script>

README

ALF Validator version License

Extremely fast API Log Format (ALF) validator using JSON Schema.

Build Status Downloads Code Climate Coverage Status Dependencies

Install

# to use in cli
npm install --global alf-validator

# to use as a module
npm install --save alf-validator

CLI Usage


Usage: src/bin.js <file...> [options]

Options:
  --help, -h    Show help                                              [boolean]
  --filter, -f  filter additional properties before validation
                                                      [boolean] [default: false]
  --schema, -s  validate using specific schema version
                                                    [string] [default: "latest"]

Note: you can also pipe through content for validation in the shell

Example
alf-validator alf.json

alf-validator --schema 1.0.0 alf.json

API


:copyright: www.mashape.com  ·  License: ISC  ·  Github: @mashape  ·  Twitter: @mashape