# ttlint

> Linter for Template Toolkit

Latest version **1.1.3** (published 2018-09-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install ttlint
pnpm add ttlint
yarn add ttlint
bun add ttlint
```

Provides the command `ttlint`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2018-09-16 |
| First published | 2017-12-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Hartumov G. |
| Maintainers | hartumov |

## Links

- npm: https://www.npmjs.com/package/ttlint
- Repository: https://github.com/hartumov/ttlint
- Homepage: https://github.com/hartumov/ttlint#readme
- Issues: https://github.com/hartumov/ttlint/issues
- npm.io page: https://npm.io/package/ttlint

## Recent versions

- 1.1.3 (latest) — 2018-09-16
- 1.1.2 — 2018-07-01
- 1.1.1 — 2018-07-01
- 1.1.0 — 2018-07-01
- 1.0.2 — 2018-04-16
- 1.0.1 — 2018-04-15
- 1.0.0 — 2018-04-15
- 0.8.0 — 2018-02-27
- 0.0.3 — 2018-01-16
- 0.0.2 — 2018-01-16
- 0.0.1 — 2017-12-25

## README

Template Toolkit beautifier

## Installation

Module must be installed as globaly

    $ npm install -g ttlint

## Usage

Just run command

    $ ttlint --flies 'path_to_file'

If you want use flies in folder:

    $ ttlint --files 'path_to_folder/**/*.*'

## Description

This module beautify brackets in TT file, aligns parameters by arrows, adds commas at ends of file, removes extra spaces, where necessary.

Example:

    [% INCLUDE      %]
    [%           WRAPPER%]

will be tranfrom in

    [% INCLUDE %]
    [% WRAPPER %]

One more example:

    INCLUDE 'b-button.inc'
            params => {
                id => 'main',
                value => 18
                data => {
                    class => 'l-float_left'
                    link => '/user/options/'
                }
                color => 'red',
            };

after beautifing

    INCLUDE 'b-button.inc'
            params => {
                id    => 'main',
                value => 18,
                data => {
                    class => 'l-float_left',
                    link  => '/user/options/',
                }
                color => 'red',
            };

---
_Source: https://npm.io/package/ttlint · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
