Skip to content

localForage/localForage-typescript-plugin-boilerplate

Repository files navigation

localForage-typescript-plugin-boilerplate

Build Status npm

A simple TypeScript plugin boilerplate for localForage.

Requirements

Installation

npm i localforage-typescript-plugin-boilerplate

API

The boilerplate makes the dummy pluginMethod() available to all localforage instances.

localforage.pluginMethod().then(function(result) {
  console.log(result);
});

Create your plugin

  • Rename the occurrences of pluginMethod, localforagePluginBoilerplate and _pluginPrivateVariables in the lib/localforage-typescript-plugin-boilerplate.js (and the file itself) to something more appropriate for your plugin.
  • Change the respective names in:
    • README.md
    • package.json
    • rollup.config.es6.js
    • rollup.config.umd.js
  • Provide a simple example in the examples/index.html

About

A simple typescript plugin boilerplate for localForage.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy