# ctry-information-reported

> 自定义信息上报

Latest version **0.0.2** (published 2021-04-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install ctry-information-reported
pnpm add ctry-information-reported
yarn add ctry-information-reported
bun add ctry-information-reported
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2021-04-07 |
| First published | 2021-04-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 14.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | zhaoxm469 |

## Links

- npm: https://www.npmjs.com/package/ctry-information-reported
- npm.io page: https://npm.io/package/ctry-information-reported

## Dependencies (1)

- [crypto-js](https://npm.io/package/crypto-js.md) ^4.0.0

## Recent versions

- 0.0.2 (latest) — 2021-04-07

## README

# 说明

自定义信息上报

## 使用

``` js
const ctryInfomation = require('ctry-information-reported');
let ctryInfoRequest = new ctryInfomation('接口请求地址:例如http://baidu.com/api/');

// 调用实例相应的方法 请求会自动上报到 http://baidu.com/api/{FunName}  
// 例如：ctryInfoRequest.add({name:1})  会自动向服务器发送请求 http://baidu.com/api/add?name=1  

// 上报信息
ctryInfoRequest.add({
    type: 'member',
    userInfo: {
        username: 1
    }
})

// 查询上报信息
ctryInfoRequest.query({
    pageNum: 1,
    pageSize: 50,
    type: 'member'
}).then(res => {
    console.log(res)
})

// 删除上报信息，单个删除
ctryInfoRequest.deleteOne({
    username: 123
}).then(res => {
    console.log(res)
})

// 删除上报信息，全部删除
ctryInfoRequest.deleteAll().then(res => {
    console.log(res)
})
```

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