Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
idb-wrapper
Advanced tools
IDBWrapper is a cross-browser wrapper for the HTML5 IndexedDB API. While this API is the future of offline storage, it is not very intuitive to use. IDBWrapper is there to provide easy access to IndexedDB's features.
IDBWrapper works on all browsers supporting the IndexedDB API, which are:
Desktop
Chrome, Firefox, Opera 15+, IE 10+, Safari 8+
Mobile
Chrome for Android, Firefox for Android, Opera for Android, IE10 for WP8, iOS 8+
Worker
IDBWrapper runs inside of a worker on following browsers:
Chrome (also on Android), Firefox (also on Android), Opera (also on Android), IE10+ (also on WP8+)
If using in an older browser supporting WebSql along with IndexedDBShim, IndexedDBShim needs to run first.
Note on limited/buggy IndexedDB support:
There are two tutorials to get you up and running:
Part 1: Setup and CRUD operations http://jensarps.de/2011/11/25/working-with-idbwrapper-part-1/
Part 2: Running Queries against the store http://jensarps.de/2012/11/13/working-with-idbwrapper-part-2/
There are some examples to run right in your browser over here: http://jensarps.github.io/IDBWrapper/example/
The source for these examples are in the example
folder of this repository.
For usage instructions, details about mothods for reading and writing data, setting up indexes and running queries, please refer to the Wiki.
There's an API reference over here: http://jensarps.github.io/IDBWrapper/doc/latest/IDBStore.html
For references of older versions, please refer to this index: http://jensarps.github.io/IDBWrapper/doc/
IDBWrapper is also available on cdnjs. You can directly
point a script tag there, or require()
it from there. cdnjs supports http,
https and spdy, so you can just leave the protocol off. The URLs for the
different versions of IDBWrapper can be found here:
https://cdnjs.com/libraries/idbwrapper
If you use NPM as your package manager, you can get it from there, too, by running:
$ npm install idb-wrapper
If you use bower as your package manager, run the following:
$ bower install idbwrapper
If you want to add IDBWrapper to a volo project, just run:
$ volo add idbwrapper
You can git clone the repository, or download a zip file here: https://github.com/jensarps/IDBWrapper/releases
FAQs
A cross-browser wrapper for IndexedDB
The npm package idb-wrapper receives a total of 108,097 weekly downloads. As such, idb-wrapper popularity was classified as popular.
We found that idb-wrapper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.