1.3.0 • Published 3 years ago

yml-sorter v1.3.0

Weekly downloads
384
License
ISC
Repository
github
Last release
3 years ago

About

This is a tool which allows you to sort yml files via a CLI.

The tool is basically a tiny wrapper around the great js-yaml.

Installation

npm install -g yml-sorter

Usage

Usage: yml-sorter [options]

Options:
  --input, -i     The yml file which needs to be sorted  [required]
  --output, -o    The file to wich to write the output
  --dry-run, -d   Only outputs the proposed sort to the terminal  [default: false]
  --indent, --id  Indentation width to use (in spaces)  [default: 2]
  -h, --help      Show help  [boolean]

Examples:
  yml-sorter --input application-yml                       Sorts the file application.yml alphabetically.
  yml-sorter --input application-yml --output dragons.yml  Sorts and writes the output to dragons.yml
  yml-sorter --input application-yml --dry-run             Writes the output to the terminal
  yml-sorter --input application-yml --indent 4            Indent with 4 spaces

With love from 42.nl
1.3.0

3 years ago

1.2.0

4 years ago

1.1.1

5 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago