A simple TypeScript plugin boilerplate for localForage.
- localForage v1.5.0+
npm i localforage-typescript-plugin-boilerplate
The boilerplate makes the dummy pluginMethod() available to all localforage instances.
localforage.pluginMethod().then(function(result) {
console.log(result);
});- Rename the occurrences of
pluginMethod,localforagePluginBoilerplateand_pluginPrivateVariablesin thelib/localforage-typescript-plugin-boilerplate.js(and the file itself) to something more appropriate for your plugin. - Change the respective names in:
README.mdpackage.jsonrollup.config.es6.jsrollup.config.umd.js
- Provide a simple example in the
examples/index.html