bookmarkletify

From a single javascript file, create a bookmarklet

npm install bookmarkletify
2 downloads in the last day
8 downloads in the last week
16 downloads in the last month

bookmarkletify

convert javascript source into the format needed for a bookmarklet

example

var bookmarkletify = require('bookmarkletify');
var source = 'alert( window.location    )';
var bookmarkletString = bookmarkletify(source);

console.log(bookmarkletString); //javascript:(function(){;alert(window.location);})()

install

With npm do:

npm install bookmarkletify

license

MIT

npm loves you