npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

storage-connector

v1.0.3

Published

An connector to work with localStorage and sessionStorage without different libs

Downloads

2

Readme

Storage Connector

An connector to work with local and session storage without different libs. The objective is to take most of the labelling process of storage and add some funcionalities.

Getting Started

These instructions will get you through installing and using deep-getter on your project.

Installing

Simply install using npm or yarn

npm install storage-connector

Using

This section will guide you through using storage-connector on your repository, showing how to use and what code you should replace for it.

const StorageConnector = require('storage-connector')

/* 
 * First you need to call the function, adding the prefix that will be preceding all the content, 
 * just for labelling and controlling purpouses
 * /

/* 
 * All the data will have 'test_' as the prefix of its label
 */
const testStorage = StorageConnector('test');

/* 
 * All the data will not have any prefix
 */
const defaultStorage = StorageConnector();

With this part instantiated all the rest of the get, set and delete actions and the extra ones can be made, all the methods can be seen on Docs section :

/*
 * SET operations
 */
testStorage.set('local', 'Local data that will be stored permanently on test_local');

testStorage.setOnSession('session', 'Session data that will be stored till the session end on test_session');

testStorage.setWithExpiration('expires', 'Data that will last 4 hours on localstorage', 4);

/*
 * GET operations
 */
testStorage.get('local');
// >> 'Local data that will be stored permanently on test_local'

testStorage.getOnSession('session');
// >> 'Session data that will be stored till the session end on test_session'

testStorage.get('expires');
// >> 'Data that will last 4 hours on localstorage'


/*
 * DELETE operations
 */

testStorage.remove('local');
testStorage.removeOnSession('session');

testStorage.get('local');
// >> null
testStorage.getOnSession('session');
// >> null


/*
 * CLEAN operations
 */

/*
 * Remove all the registries containing 'test_' prefix
 */
testStorage.clean();
testStorage.cleanSession();

Questions?

If you have any questions about using Storage Connector on your project, please open a new issue.

Filing a bug

If you found a bug, please open a new issue.

Contributing

This project is open for contributions. To suggest a new feature, please open a new issue. To fix a filed bug or implementing a feature, please fork this project, create a new branch containing your code and send a pull request. If you need any guidance, you can reach us out by creating a new issue.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details