Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

klarna/katt-util

Repository files navigation

[DEPRECATED] KATT util Build Status


⚠ Important

This project is not maintaned anymore. Some dependencies are known to have security vulnerabilities. Install at your own risk.


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

About

KATT utilities for KATT blueprints.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published