POSTS

image from gulp-bookmarklet

gulp-bookmarklet

Gulp Bookmarklet is a Gulp wrapper for the bookmarklet package used to generate multiple bookmarklets.

The plugin was created after the amount of Bookmarklets that I develop and use myself to automate my web browsing habits warranted automating.  Recent examples of bookmarklets I’ve written would be removing the tracking links on slickdeals and searching for steam games from a /r/gamedeals table.

To use the plugin with Gulp, simply install the package with NPM and add it to your development dependencies:

npm install --save-dev gulp-bookmarklet

No arguments are required for usage. By default a call to gulp-bookmarklet with no arguments will generate bookmarklet code for each source file in minified js files.

var bookmarklet = require('gulp-bookmarklet');
 
gulp.task('bookmarklet', function() {
    return gulp.src('src/*.js')
        .pipe(bookmarklet())
        .pipe(gulp.dest('min.js'));
});

For more details see the full README.


#

comments powered by Disqus