kw

0.0.2 • Public • Published

kill whitespace

Kill dead whitespace from the command line.

Installation

npm install -g kw

# kill all whitespace in files in the current directory
➜ kw .

# kill all whitespace in a specific file
➜ kw /path/to/file.txt

# pipe data through it
➜ cat /some/file | kw > /some/other/file

Usage

➜  kw
Usage: kw file

Options:
  -t, --type  File types to include. The defaults are rb, sass, js, coffee, jade, haml, html, rake, json, txt, md

API

kw(text)

Kill all dead whitespace in the text.

var kw = require('kw');
 
console.log(kw('this line has dead whitespace \n'));

Readme

Keywords

none

Package Sidebar

Install

npm i kw

Weekly Downloads

3

Version

0.0.2

License

BSD

Last publish

Collaborators

  • zhm