1.1.4 • Published 8 years ago

salter v1.1.4

Weekly downloads
3
License
Unlicense
Repository
github
Last release
8 years ago

salter

A command line utility that generates ascii-font headers.

npm install -g salter

It watches for changes to source files in (or below) a given directory.

When a file change occurs it searches for special comment lines, eg:

#!! salt

... and replaces them with something like this:

###
 0000000   0000000   000      000000000
000       000   000  000         000   
0000000   000000000  000         000   
     000  000   000  000         000   
0000000   000   000  0000000     000   
###

Defaults

Currently, the following file types are handled by default:

  • coffee, js, ts
  • styl, jade
  • h, cpp
  • noon
  • py

The default marker for coffee, python and noon files is: #>
For all other file types: //>

Configuration

On startup, salter looks for configuration files in your home directory and/or the target directory: .salter.noon or .salter.json

For example, a .salter.noon file that adds handling of html files could look like this:

html
    marker      >>
    prefix      <!--
    postfix     --!>

or, if you prefer json:

{
    "html": {
        "marker": ">>",
        "prefix": "<!--",
        "postfix": "-->"
    }
}
1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.0.1

8 years ago

0.2.1

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago

0.0.0

8 years ago