storage is a lightweight TypeScript/JavaScript utility library for managing browser storage in a structured and consistent way.
It provides a simple abstraction over common storage mechanisms (such as localStorage) and helps standardize read/write operations in frontend applications.
- Simple wrapper around browser storage APIs
- TypeScript support
- Modular architecture
- Test coverage
- Example usage included
- CI-ready configuration
Using npm:
npm install <package-name>Or using pnpm:
pnpm add <package-name>(Replace <package-name> with the published package name if available.)
Basic example:
import storage from 'storage';
storage.set('key', { name: 'John' });
const value = storage.get('key');
console.log(value);Clone the repository:
git clone https://github.com/<your-username>/storage.git
cd storageInstall dependencies:
npm installnpm run buildRun tests:
npm testsrc/– Source code (TypeScript)test/– Unit testsexample/– Usage examplesdocs/– Documentationtsconfig.json– TypeScript configurationpackage.json– Project metadata and scripts