malta-js-bookmarklet

1.0.12 • Public • Published

npm version npm downloads npm downloads

This plugin can be used on: .js files and even on .coffee and .ts files after using the right plugin

Purpose

Allow to create bookmarklets from javascript code

Options : - button : if set tue true creates even a second bookmarklet which injects on the uper left corner of the page a "run me" button to run the code.

Sample usage:

malta app/source/bm.js public/js -plugins=malta-js-bookmarklet

or in the .json build file :

"app/source/bm.js" : "public/js -plugins=malta-js-bookmarklet"

or in a script :

var Malta = require('malta');
Malta.get().check([
    'app/source/bm.js',
    'public/js',
    '-plugins=malta-js-bookmarklet'
    ]).start(function (o) {
        var s = this;
        console.log('name : ' + o.name)
        console.log("content : \n" + o.content);
        'plugin' in o && console.log("plugin : " + o.plugin);
        console.log('=========');
    });

Package Sidebar

Install

npm i malta-js-bookmarklet

Weekly Downloads

1

Version

1.0.12

License

MIT

Unpacked Size

6.19 kB

Total Files

4

Last publish

Collaborators

  • fedeghe