gulp-boxen

1.0.5 • Public • Published

gulp-boxen

Travis npm repo gulp useless

This is useless plugin for wrapping your files's content to boxes. Uses boxen.

Installation

npm i gulp-boxen

Example

text.txt:

GULP-BOXEN

Gulpfile.coffee:

gulp  = require 'gulp'
boxen = require 'gulp-boxen'
 
gulp.task 'build'() ->
    gulp.src 'text.txt'
        .pipe boxen
            padding:     3
            margin:      2
            borderStyle: "double"
 
        .pipe gulp.dest 'results'
 
gulp.task 'default'[ 'build' ]

or Gulpfile.js:

var gulp  = require('gulp');
var boxen = require('gulp-boxen');
 
gulp.task( 'build', function() {
    gulp.src( 'text.txt' )
        .pipe( boxen({
     padding: 3,
     margin: 2,
     borderStyle: "double"
   }))
 
   .pipe(gulp.dest( 'results' ))
});
 
gulp.task('default', [ 'build' ]);

Run:

gulp

Now results/text.txt is

 
 
      ╔════════════════════════════╗
      ║                            ║
      ║                            ║
      ║                            ║
      ║         GULP-BOXEN         ║
      ║                            ║
      ║                            ║
      ║                            ║
      ╚════════════════════════════╝
 
 

API

See boxen's API.

License

MIT.

Package Sidebar

Install

npm i gulp-boxen

Weekly Downloads

7

Version

1.0.5

License

MIT

Last publish

Collaborators

  • egorgl