# cordova-plugin-cache-json

> Cache content into json files for Cordova/PhoneGap

Latest version **1.0.2** (published 2016-05-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install cordova-plugin-cache-json
pnpm add cordova-plugin-cache-json
yarn add cordova-plugin-cache-json
bun add cordova-plugin-cache-json
```

## 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.0.2 |
| Published | 2016-05-30 |
| First published | 2016-05-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | vaenow |
| Maintainers | vaenow |
| Keywords | cordova, android, iOS, cache, json, file, files |

## Links

- npm: https://www.npmjs.com/package/cordova-plugin-cache-json
- Repository: https://github.com/vaenow/cordova-plugin-cache-json
- Issues: https://github.com/vaenow/cordova-plugin-cache-json/issues
- npm.io page: https://npm.io/package/cordova-plugin-cache-json

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.2 (latest) — 2016-05-30
- 1.0.1 — 2016-05-27

## README

# cordova-plugin-cache-json
Cache content into json files

把文字内容缓存至json文件


# Usage
## Add the plugin
```shell
cordova plugin add cordova-plugin-cache-json  
```

## Methods

`like localStorage's methods`

 * CacheJson.setItem(key, content, callback)

 * CacheJson.getItem(key, callback)



 * CacheJson.removeItem(key, callback)


 * CacheJson.clear(callback)

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