gulp-salt
gulp plugin that inserts ascii headers
Last updated 4 years ago by monsterkodi .
Unlicense · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-salt 
SYNC missed versions from official npm registry.

gulp-salt

generates ascii-font headers 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   
###

when it discovers special comment lines:

#!! salt

it is most useful when attached to a watch:

gulpfile.coffee

gulp = require 'gulp'
salt = require 'gulp-salt'

gulp.task 'default', ->        
    gulp.watch ['**/*.coffee'], (e) -> 
        gulp.src e.path, base: './'
        .pipe salt()
        .pipe gulp.dest '.'

it keeps the indentation level intact and you can configure the comment format for different file types:

default config

coffee: 
    marker:  '#!!'
    prefix:  '###'
    postfix: '###'
styl: 
    marker:  '//!'
    prefix:  '/*'
    fill:    '*  '
    postfix: '*/'

This stuff works for me, but I won't guarantee that it works for you as well. Use at your own risk!

npm

Current Tags

  • 0.9.3                                ...           latest (4 years ago)

7 Versions

  • 0.9.3                                ...           4 years ago
  • 0.9.2                                ...           4 years ago
  • 0.9.1                                ...           4 years ago
  • 0.1.4                                ...           5 years ago
  • 0.1.3                                ...           5 years ago
  • 0.1.2                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 21
Dependencies (4)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |