npm.io
3.0.0 • Published 6h ago

storage-form

Licence
MIT
Version
3.0.0
Deps
0
Size
249 kB
Vulns
0
Weekly
0
Stars
1

Storage Elements

Custom elements to manipulate localStorage/sessionStorage/chrome.storage.{sync,local} as <input> elements. This make you to build easily configuration pages of your Google Chrome extention or web application.

Install

npm install storage-form

Register the custom elements once before using them:

import { register } from "storage-form";

register();

Without a bundler, import js/storage-elements-registerer.js of the package by its path instead, as the demo does, or map storage-form to it with an import map.

The package is ESM only and ships its TypeScript declarations.

Browser support

Safari is not supported because it does not implement customized built-in elements, such as <input is="storage-input">.

Keywords