1.1.4 • Published 9 years ago

salter v1.1.4

Weekly downloads
3
License
Unlicense
Repository
github
Last release
9 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

9 years ago

1.1.3

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.0.1

10 years ago

0.2.1

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago