Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@analytics/session-storage-utils
Advanced tools
A tiny sessionStorage utility library with fallbacks in 239 bytes
.
This module will automatically fail back to global window storage if sessionStorage
is not available.
Exposes hasSessionStorage
, getItem
, setItem
, & removeItem
functions.
Install @analytics/session-storage-utils
from npm.
npm install @analytics/session-storage-utils
Below is the api for @analytics/session-storage-utils
. These utilities are tree-shakable.
hasSessionStorage
Check if sessionStorage is supported
import { hasSessionStorage } from '@analytics/session-storage-utils'
if (hasSessionStorage()) {
// Use session storage
}
getSessionItem
Get a sessionStorage value.
import { getSessionItem } from '@analytics/session-storage-utils'
const value = getItem('item-key')
setSessionItem
Set a sessionStorage value.
import { setSessionItem } from '@analytics/session-storage-utils'
setSessionItem('item-key', 'a')
removeSessionItem
Delete a sessionStorage value.
import { removeSessionItem } from '@analytics/session-storage-utils'
removeSessionItem('item-key')
FAQs
Tiny SessionStorage utility library
We found that @analytics/session-storage-utils 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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.