null-storage

Web Storage API implementation with no store

Usage no npm install needed!

<script type="module">
  import nullStorage from 'https://cdn.skypack.dev/null-storage';
</script>

README

Null Storage

GitHub GitHub tag (latest SemVer) TypeScript Support

Web Storage API implementation with no store effects.

May be used when storage not configured yet or inside Node.JS as placeholder.

Installation

Using npm

npm i null-storage

Example

import { nullStorage } from "null-storage";

// Note: nothing will be saved!
nullStorage.setItem("key");

Contributors

License

MIT