Registry / storage / angular-storage

angular-storage

JSON →
library0.0.15jsnpmunverified

Store wrapper for AngularJS that defaults to localStorage/sessionStorage and falls back to ngCookies. Version 0.0.15 is the latest stable release (no recent updates). Saves and retrieves JavaScript objects, numbers, and strings with type preservation. Features caching to avoid redundant reads and supports namespaced stores. Designed for AngularJS (1.x) applications.

storage
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CommonJS require returns module object, but store is a service; use ESM or inject via AngularJS dependency injection.

import { store } from 'angular-storage';

storeProvider is used for configuration; similar import pattern as store.

import { storeProvider } from 'angular-storage';

The module name is 'angular-storage' (not the Bower package name 'a0-angular-storage').

angular.module('app', ['angular-storage']);

Demonstrates basic usage: set, get, and type preservation with angular-storage in AngularJS.

var app = angular.module('app', ['angular-storage']); app.controller('Controller', function(store) { store.set('version', 42); var version = store.get('version'); console.log(typeof version); // 'number' });
Debug
Known footguns
gotchaService name 'store' conflicts with other libraries (e.g., Redux store).
deprecatedPackage is unmaintained; no updates since 2016. AngularJS (1.x) ecosystem is in maintenance mode.
gotchaFalls back to ngCookies when localStorage/sessionStorage unavailable, which may expose data in HTTP headers.
gotchaNamespaced stores use a delimiter that defaults to '.', which may conflict with dot-notation in keys.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
0 hits · last 30 days

No traffic data recorded yet.

Resources