Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
storage-manager
Advanced tools
Readme
Storage Manager module that help you manage your local and session storage
{ minutes: 2 }
{ minutes: 3, seconds: 30 }
npm install storage-manager --save
/**
* Supported TTL values: { milliseconds, seconds, minutes, hours, days }
* You can use multiple values like { minutes: 3, seconds: 30 }
* SessionStorage works the same implementation as LocalStorage
* */
import { LocalStorage } from 'storage-manager';
const options = { minutes: 2 }
// this will update the ttl everytime you'll get the key
LocalStorage.set('some-key', 'some-value', options)
// it will refresh the TTL of this key to it's default value (2 minutes in that case)
LocalStorage.get('some-key')
import { LocalStorage } from 'storage-manager';
// it will save the key forever untill you will remove it manually
LocalStorage.set('forever-key', 'some-value')
LocalStorage.remove('forever-key')
import { LocalStorage } from 'storage-manager';
// refreshTTL is true by default.
// refreshTTL means that everytime you'll get this key, it will refresh his TTL to what it was before
const options = { minutes: 4, seconds: 30, refreshTTL: false }
LocalStorage.set('some-key', 'some-value', options)
// this will not update the ttl everytime you'll get the key
LocalStorage.get('some-key')
// it will NOT refresh the TTL of this key, this key will stay 4 minutes and 30 seconds
import { LocalStorage } from 'storage-manager';
LocalStorage.clearAll() // clear all storage
FAQs
Storage Manager module that help you manage your local and session storage
The npm package storage-manager receives a total of 684 weekly downloads. As such, storage-manager popularity was classified as not popular.
We found that storage-manager demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.