1.0.12 • Published 4 years ago

malta-js-bookmarklet v1.0.12

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

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('=========');
    });
1.0.12

4 years ago

1.0.11

5 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago