
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
@toolz/session-storage-is-available
Advanced tools
A simple utility function to safely determine whether sessionStorage is available in the current environment
session-storage-is-available is a tiny utility function to safely determine whether sessionStorage is available in the current environment. It's dangerous to assume that sessionStorage() is available. It can be absent in non-supported browsers, or when scripts are invoked from the command line, or when the user's browser is in Incognito Mode. Trying to access sessionStorage() when it's unavailable can spawn an Error. So it's best to test for its existence before attempting to access it.
After installation, import the package:
import { sessionStorageIsAvailable } from '@toolz/session-storage-is-available';
sessionStorageIsAvailable() attempts to set-and-remove a value in sessionStorage, returning a Boolean value based on its failure or success.
const API = {
arguments: {
// none
},
returns: Boolean,
}
Examples:
sessionStorageIsAvailable(); // returns Boolean TRUE in "normal" browser situations
sessionStorageIsAvailable(); // returns Boolean FALSE when invoked outside a "normal" browser
// or when the browser can sessionStorage disabled (e.g., Incognito Mode)
FAQs
A simple utility function to safely determine whether sessionStorage is available in the current environment
We found that @toolz/session-storage-is-available 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
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.