1.9.0 • Published 1 month ago
lib-iitc-manager v1.9.0
lib IITC manager
Library for managing IITC and plugins.
Getting started
npm install lib-iitc-manager --save
Usage
Example code to use in WebExtension. Imports the library, passes environment parameters and starts loading IITC and plugins.
import { Manager } from 'lib-iitc-manager';
const manager = new Manager({
storage: browser.storage.local,
message: (message, args) => {
console.log("Message for user:");
console.log(message+", args: "+args);
},
progressbar: is_show => {
if (is_show) {
console.log("Show progress bar");
} else {
console.log("Hide progress bar");
}
},
inject_plugin: plugin => {
console.log("Code of UserScript plugin for embedding in a page:");
console.log(plugin['code']);
}
});
manager.run().then();
Example of use helpers:
import { getUniqId } from "lib-iitc-manager";
const uniqId = getUniqId("tmp");
License
1.9.0
1 month ago
1.8.4
3 months ago
1.8.3
3 months ago
1.8.2
7 months ago
1.8.1
8 months ago
1.8.0
8 months ago
1.7.1
9 months ago
1.7.0
10 months ago
1.6.1
1 year ago
1.6.0
1 year ago
1.5.0
1 year ago
1.2.0
2 years ago
1.3.6
1 year ago
1.4.4
1 year ago
1.3.5
1 year ago
1.4.3
1 year ago
1.3.4
1 year ago
1.4.2
1 year ago
1.3.3
1 year ago
1.4.1
1 year ago
1.3.2
1 year ago
1.4.0
1 year ago
1.3.1
1 year ago
1.3.0
1 year ago
1.1.0
2 years ago
1.0.0
2 years ago