Nightmarish Pawnshop Mystic
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

bookmarkletify

1.0.0 • Public • Published

bookmarkletify

convert javascript source into the format needed for a bookmarklet

Usage

As a module

npm install bookmarkletify
 
var bookmarkletify = require('bookmarkletify');
var source = 'alert( window.location    )';
var bookmarkletString = bookmarkletify(source);
 
console.log(bookmarkletString); //javascript:(function(){;alert(window.location);})()

or as a command line tool

npm install -g bookmarkletify
bookmarkletify input.js -o output.bookmarklet
 

license

MIT

Keywords

install

npm i bookmarkletify

Downloadsweekly downloads

1

version

1.0.0

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar