# index-db-package

> The browser database indexedDB is encapsulated

Latest version **1.1.0** (published 2024-04-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install index-db-package
pnpm add index-db-package
yarn add index-db-package
bun add index-db-package
```

## 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.1.0 |
| Published | 2024-04-07 |
| First published | 2022-09-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 13.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | fuloliya |
| Maintainers | fuloliya |

## Links

- npm: https://www.npmjs.com/package/index-db-package
- npm.io page: https://npm.io/package/index-db-package

## Recent versions

- 1.1.0 (latest) — 2024-04-07
- 1.0.21 — 2024-04-07
- 1.0.20 — 2024-04-07
- 1.0.19 — 2024-04-03
- 1.0.18 — 2024-04-03
- 1.0.17 — 2024-04-03
- 1.0.16 — 2024-04-03
- 1.0.15 — 2024-04-03
- 1.0.14 — 2024-04-03
- 1.0.13 — 2024-04-03
- 1.0.12 — 2024-04-03
- 1.0.11 — 2024-04-03
- 1.0.10 — 2024-04-03
- 1.0.9 — 2024-04-03
- 1.0.8 — 2024-04-03
- … 8 more at https://npm.io/package/index-db-package/versions

## README

# Index-db-package

## 介绍

对浏览器数据库indexedDB进行了封装

## 安装教程

```js
npm install index-db-package
```

## 使用说明

```js
import IndexDB from 'index-db-package'
const database = new IndexDB('dabtabase')
const data = [
  { name: "Sales", max: 6500 },
  { name: "Administration", max: 16000 },
  { name: "Information Technology", max: 30000 },
  { name: "Customer Support", max: 38000 },
  { name: "Development", max: 52000 },
  { name: "Marketing", max: 25000 },
];
const indexArr = [{ key: "max", unique: false }];
const createArr = [
  {
    storeName: "customers",
    createType: "manual",
    DBType: "readwrite",
    primaryKey: "name",
    indexArr: indexArr,
  },
  {
    storeName: "customers2",
    createType: "automatic",
  },
];
database.open().then(()=>{
  database.createDataSheet(createArr).then(()=>{
    database.set("customers", data).then(() => {})
  })
})
```

## 文档

| 服务 | 地址 |
| :--: | :--: |
| 文档 | [https://github.com/FuloliyaLansfroya/index-db/](https://github.com/FuloliyaLansfroya/index-db/) |

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