New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@studyportals/data-storage

Package Overview
Dependencies
Maintainers
20
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@studyportals/data-storage

Create a browser independent local storage solution.

  • 2.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1.1K
increased by21.16%
Maintainers
20
Weekly downloads
 
Created
Source

DataStorage

Create a browser independent local storage solution.

Installation:

This package is written in ES5 and is available on NPM.

npm install --save @studyportals/data-storage

Functions:

Javascript

import {DataStorage} from "@studyportals/data-storage";

/**
 * Store any type of value with an TTL of 1800 seconds.
 */
DataStorage.store('AnyObject', {
    prop1: 'test-1',
    prop2: 'test-2'
}, 1800);

/**
 * Retrieve from the storage.
 */
DataStorage.retrieve('AnyObject');

/**
 * Remove an object from the storage.
 */
DataStorage.remove('AnyObject');

/**
 * Add properties to an existing object with an TTL of 1800 seconds.
 */
DataStorage.update('AnyObject', {
    prop3: 'test-3'
}, 1800);

FAQs

Package last updated on 23 Jun 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc