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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@bizjournals/js-storage

v0.2.0

Published

ACBJ javascript storage classes

Readme

Storage

This bundle has helper classes to interact with browser storage options. At present we support localstorage and sessionstorage. These share a common abstract parent.

Storage references are critical to the implementation of our architecture. A reference is a named key that contains your data in the selected storage type.

Installing

Using npm:

npm install @bizjournals/vue-core

Using yarn:

yarn add @bizjournals/vue-core

Configuring your environment:

You will need to configure an NPM_TOKEN within your project to include these private modules. The best idea is to use an existing project as an example.

For simple setups the .gitlab-ci.yml file within this project as a guide to accessing project variables via the .npmrc file

Example

import { StorageReference, LocalStorage, SessionStorage } from "@bizjournals/js-storage";

// This will setup a reference that is namespaced to bizj
// The full key in localstorage will be bizj.mykey
// This key will have an expiration partner that by default will be one hour
const something = new StorageReference('mykey', new LocalStorage());

something.saveAs({
    my: 'data'
});

// local storage has a configurable API as well, and this can be used in storage
// reference objects too.
const local = new LocalStorage({
    // by changing the namespace what was bizj by default will now be notbizj
    // Example: notbizj.mykey
    namespace: 'notbizj',
    expires: 3600 // one hour
});


// session storage uses the same api as local storage
const somethingElse = new StorageReference('difkey', new SessionStorage({
    namespace: 'woa'
}));

const somethingElsesData = somethingElse.obtain();

Storage Reference

A storage reference is a keyed object that exists within either local or session storage. It may be prefixed with a namespace since of the respective storage container.

API

constructor(cacheKey : String, storageSystem : StorageAbstract)
obtain()
bust()
saveAs(data : Mixed)

Storage Abstract

The parent class for both local and session storage creates the API used by each of them.

API

constructor(options : Object : { namespace: String, expires: Number })
getItem(key: String)
hasItem(key : String)
setItem(key : String, value : Mixed, expires = true : Boolean)

Reference

getItem

Gets an item with a specified key. The namespace set in the construction of the object will be pre-fixed to the beginning of the string, by default this is bizj.

hasItem

This checks to see if the item is available. If it is it'll cache it, so that if you need to get the item later you don't need to worry about additional reads.

setItem

Sets the item in storage and updates the item in cache. It will automatically prefix itself with the namespace, by default bizj.