Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/insin/hta-localstorage
Basic localStorage implementation for Internet Explorer HTML Applications (HTA)
https://github.com/insin/hta-localstorage
hta localstorage
Last synced: 17 days ago
JSON representation
Basic localStorage implementation for Internet Explorer HTML Applications (HTA)
- Host: GitHub
- URL: https://github.com/insin/hta-localstorage
- Owner: insin
- License: mit
- Created: 2014-11-02T19:22:17.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-02T19:28:12.000Z (about 10 years ago)
- Last Synced: 2025-01-03T02:15:31.769Z (27 days ago)
- Topics: hta, localstorage
- Language: JavaScript
- Size: 97.7 KB
- Stars: 12
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## hta-localstorage
IE9 doesn't support `localStorage` for `file://` URLs.
This is a problem if you're writing an [HTML Application](http://en.wikipedia.org/wiki/HTML_Application)
(HTA) in IE9 mode and were expecting to use `localStorage` to persist some data.This is a simple implementation of just the functions in the `localStorage`
API which stringifies a storage object to JSON and writes it to a
`.hta-localstorage` file in your user profile directory on every change.### API
* `getItem(key)`
* `setItem(key, value)`
* `removeItem(key)`
* `clear()`### Install
```
npm install hta-localstorage
```### MIT Licensed