gulp-insert
String manipulation library for gulp
Usage
npm install gulp-insert
var insert = ;
Append
Appends a string onto the contents.
; // Appends 'world' to the contents of every file
Prepend
Prepends a string onto the contents.
; // Prepends 'Hello' to the contents of every file
Wrap
Wraps the contents with two strings.
; // prepends 'hello' and appends 'world' to the contents
Transform
Calls a function with the contents of the file.
;
Transform has access to the underlying vinyl file. The following code adds a '//' comment with the full file name before the actual content.
;
See https://github.com/wearefractal/vinyl for docmentation on the 'file' parameter.