# indexeddbformat

> 基于html5的indexedDB的封装 ## installation ***

Latest version **1.1.1** (published 2021-11-04) · ISC license · 0 weekly downloads

## Install

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

## 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.1 |
| Published | 2021-11-04 |
| First published | 2021-11-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | tianxiangqin |
| Maintainers | tianxiangqin |
| Keywords | indexedDb, promise |

## Links

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

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 1.1.1 (latest) — 2021-11-04
- 1.1.0 — 2021-11-04
- 1.0.9 — 2021-11-04
- 1.0.8 — 2021-11-04
- 1.0.7 — 2021-11-03
- 1.0.6 — 2021-11-03
- 1.0.5 — 2021-11-03
- 1.0.4 — 2021-11-03
- 1.0.3 — 2021-11-03
- 1.0.2 — 2021-11-03
- 1.0.1 — 2021-11-01
- 1.0.0 — 2021-11-01

## README

# indexeddbformat V1.1.1

基于html5的indexedDB的封装
## installation
***

using npm:
```
npm install indexeddbformat --save
```

using yarn:
```
yarn add indexeddbformat
```

api 示例
```javascript
import indexedDbformat from 'indexeddbformat';

/**查询数据
 * @return 返回值是promise对象
 * @param db_name 数据库名
 * @param storeName 表明
 * @param id 数据的索引
*/
indexedDbformat.readData(db_name,storeName, id) 

/** 添加数据
 *  @return 返回值是promise对象
 *  @param db_name 数据库名
 *  @param storeName 表明
 *  @param data 一项数据,限制索引为'id'
*/

indexedDbformat.saveData(db_name,storeName, data) 


/** 清除所有数据
 * @return 返回值是promise对象
 * @param db_name 数据库名
 * @param storeName 表明
 */

indexedDbformat.clearData(db_name,storeName)  

/** 删除指定数据
 * @return 返回值是promise对象
 * @param db_name 数据库名
 * @param storeName 表明
 * @param id 数据的索引
 */

indexedDbformat.removeData(db_name,storeName, id) 
```

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