Provides a convenient API for data persistence using a selected data storage mechanism. Current stable version is 2.0.1. Release cadence is unknown; last release appears older. It is part of the Metal.js ecosystem. Unlike larger storage libraries, it offers a lightweight abstraction over localStorage, sessionStorage, and other backends. Supports Node.js >=0.12 and npm >=3.
npm install metal-storageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic CRUD operations: setItem, getItem, removeItem, clear, and default storage usage.
Check if storage is available before using, or provide a fallback storage adapter.
Use the canonical named imports for better compatibility.
Use try-catch blocks around storage operations.
Run 'npm install metal-storage' and ensure import path matches.
Use 'import storage from 'metal-storage'' and then 'storage.getItem()' or named imports.
Provide a storage backend that works in your environment, or use a polyfill.
No dependency data recorded yet.