1.0.5 • Published 7 years ago

gulp-boxen v1.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

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.