homepage: https://github.com/ndrewtl/trim
changelog-type: markdown
hash: 9001aa29449a4da9c1a7f95e917d13f585a358eaac661becbb8c79db7c877ce9
test-bench-deps:
  trim: -any
  base: ^>=4.12.0.0
  hspec: ^>=2.6
maintainer: andrewl@mbda.fun
synopsis: A command-line tool for trimming whitespace
changelog: |
  # Revision history for trim

  ## 0.1.0.0 -- 2019-01-30

  * First version. Released on an unsuspecting world.
basic-deps:
  base: ! '>=4.12.0.0 && <4.13'
  optparse-applicative: ^>=0.14
  directory: ^>=1.3
all-versions:
- 0.1.0.0
author: Andrew Lee
latest: 0.1.0.0
description-type: markdown
description: |
  # trim

  [![Build Status](https://travis-ci.com/ndrewtl/trim.svg?branch=master)](https://travis-ci.com/ndrewtl/trim)

  `trim` is a simple unix-philosophy tool to trim trailing whitespace from a file.
  It is designed to be simple and transparent. It takes input from stdin and
  output from stdout, for easy piping.

  ## Usage

  `trim [-N|--newlines] [-o|--output ARG] [FILE]`

  `trim` with no flags takes input from stdin and prints to stdout. It trims
  trailing whitespace from each line, but does not trim additional newlines.

    - `[FILE]` The file to read from. If `FILE` is a single hyphen `-` or unspecified, read from standard input.

    - `--output`, `-o` `[FILENAME]` write to the given filename instead of stdout

    - `--newlines`, `-N` Trim trailing newlines as well

  ## Building
  Build with `cabal v2-build`
license-name: BSD-3-Clause

Update from Hackage at 2019-01-30T22:48:22Z
Update from Hackage at 2019-01-30T22:48:22Z
