
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@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
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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.