@ngxgs/powered-storage
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

Powered Storage

A service for improve the local and session storage of the applications.

Getting Started

Install

Run the command: npm install @ngxgs/powered-storage, inside your application.

Usage Exemple

import { Component, inject } from '@angular/core';
import { PoweredStorage } from '@ngxgs/powered-storage';

@Component({
    ...
})
export class MyComponent {
    poweredStorage = inject(PoweredStorage);
    constructor() {
        this.poweredStorage.setItem('key', 'value');
        const item = this.poweredStorage.getItem<type>('key');
        if (item) {
            // do something...
        }
    }
}

Contact

Repository

You can contribute to this library through its GitHub repository: ngxgs/libraries.

Author

Package Sidebar

Install

npm i @ngxgs/powered-storage

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

30.3 kB

Total Files

10

Last publish

Collaborators

  • sougabriel