Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
KATT utilities for KATT blueprints.
CoffeeScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.coffee.mk @ d9c80f9
bin
src
test
.coffeelint.json
.gitignore
.gitmodules
.npmignore
.travis.yml
AUTHORS
LICENSE
Makefile
NOTICE
NOTICE2
README.md
custom.mk
index.coffee
package.json
testem.yml

README.md

KATT util Build Status

KATT utilities for KATT blueprints.

Install

# NPM distribution
npm install katt-util

# GIT source
git clone --recurse-submodules https://github.com/klarna/katt-util.git
npm install

Usage

Linter

katt-lint FOLDER/FILE ...
# katt-lint -h for options
kattUtil = require 'katt-util'
kattBlueprint = '...'

errors = kattUtil.lint kattBlueprint

if errors.length # if there are errors
  console.log errors.length[0] # {type, native, details}

Formatter

katt-format FOLDER/FILE ...
# katt-format -h for options
kattUtil = require 'katt-util'
kattBlueprint = '...'

beautifulKattBlueprint = kattUtil.format kattBlueprint

HAR-to-KATT converter

har2katt FILE ...
kattUtil = require 'katt-util'
har = '...'

kattBlueprint = kattUtil.har2katt harr

License

Apache 2.0

Something went wrong with that request. Please try again.