
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@fiddle-digital/string-storage
Advanced tools
A lightweight and versatile JavaScript library for managing local and session storage in web applications. Offers automatic data persistence with expiry, seamless integration with form elements, and support for complex data structures. Ideal for enhancing
StringStorage is a TypeScript-based library that simplifies working with Web Storage (localStorage and sessionStorage), providing automatic handling of data persistence with expiration, seamless integration with HTML form elements, and support for complex data structures. It's crafted to enhance user experience by persisting form inputs and application states across sessions with minimal setup.
npm install @fiddle-digital/string-storage
import StringStorage from '@fiddle-digital/string-storage';
To start using StringStorage:
const storage = StringStorage.getInstance();
StringStorage can automatically save and restore the values of form elements. Simply add the data-string-storage attribute to your form:
<form data-string-storage>
<input type="text" data-string-id="username" />
<textarea data-string-id="bio"></textarea>
<select data-string-id="country">
<option value="us">United States</option>
<option value="ca">Canada</option>
</select>
<button type="submit">Submit</button>
</form>
To save data to localStorage:
storage.local.set('key', 'value', {days: 1});
To save data to sessionStorage:
storage.session.set('key', 'value');
To retrieve data from localStorage:
const value = storage.local.get('key', 'default');
const exists = storage.local.has('key');
To remove data from localStorage:
storage.local.delete('key');
StringStorage allows setting expiration for stored data, which is automatically respected and cleaned up:
storage.local.set('temporary', 'data', {hours: 1});
After 1 hour, temporary will be automatically removed from storage.
FAQs
A lightweight and versatile JavaScript library for managing local and session storage in web applications. Offers automatic data persistence with expiry, seamless integration with form elements, and support for complex data structures. Ideal for enhancing
The npm package @fiddle-digital/string-storage receives a total of 2 weekly downloads. As such, @fiddle-digital/string-storage popularity was classified as not popular.
We found that @fiddle-digital/string-storage demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.