katt-util
KATT utilities for KATT blueprints.
Last updated 7 years ago by andreineculau .
Apache-2.0 · Repository · Original npm · Tarball · package.json
$ cnpm install katt-util 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.1.3                                ...           latest (7 years ago)

1 Versions

  • 0.1.3                                ...           7 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (6)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |