# indexeddown

> Leveldown API implementation on top of IndexedDB

Latest version **1.2.1** (published 2018-08-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install indexeddown
pnpm add indexeddown
yarn add indexeddown
bun add indexeddown
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2018-08-08 |
| First published | 2018-05-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 8.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | kapetan |
| Keywords | level, levelup, leveldown, indexeddb |

## Links

- npm: https://www.npmjs.com/package/indexeddown
- Repository: https://github.com/kapetan/indexeddown
- Homepage: https://github.com/kapetan/indexeddown#readme
- Issues: https://github.com/kapetan/indexeddown/issues
- npm.io page: https://npm.io/package/indexeddown

## Dependencies (2)

- [ltgt](https://npm.io/package/ltgt.md) ^2.2.1
- [abstract-leveldown](https://npm.io/package/abstract-leveldown.md) ^4.0.3

## Recent versions

- 1.2.1 (latest) — 2018-08-08
- 1.2.0 — 2018-05-07
- 1.1.0 — 2018-05-04
- 1.0.0 — 2018-05-03

## README

# indexeddown

Leveldown API implementation on top of IndexedDB. Underneath [abstract-leveldown](https://github.com/Level/abstract-leveldown) is used to ensure compatibility with [leveldown](https://github.com/level/leveldown).

    npm install indexeddown

Only browsers with non-prefixed IndexedDB API are supported.

## Usage

The regular `leveldown` API is exposed.

```javascript
var indexeddown = require('indexeddown')

var db = indexeddown('test')

db.open(function (err) {
  db.put('key', 'value', function (err) {
    db.get('key', function (err, value) {
      console.log(value)
    })
  })
})
```

By default this implementation does not enable the snapshot feature available in `leveldown`, unless the `snapshot` option is passed to the constructor, but this might increase memory consumption.

```javascript
var db = indexeddown('test', { snapshot: true })
```

---
_Source: https://npm.io/package/indexeddown · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
