Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-salt

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-salt

gulp plugin that inserts ascii headers

  • 0.9.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Keywords

FAQs

Package last updated on 21 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc