# yinxing

> koa模板

Latest version **0.1.57** (published 2020-02-18) · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.57 |
| Published | 2020-02-18 |
| First published | 2019-12-16 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 40 |
| Unpacked size | 8.1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | birdsofsummer |
| Maintainers | birdsofsummer |
| Keywords | scf, ci, functional, fp |

## Links

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

## Dependencies (40)

- [mz](https://npm.io/package/mz.md) ^2.7.0
- [koa](https://npm.io/package/koa.md) ^2.9.0
- [mime](https://npm.io/package/mime.md) ^2.4.4
- [rxjs](https://npm.io/package/rxjs.md) ^6.5.3
- [toml](https://npm.io/package/toml.md) ^3.0.0
- [uuid](https://npm.io/package/uuid.md) ^3.3.3
- [walk](https://npm.io/package/walk.md) ^2.3.14
- [ylru](https://npm.io/package/ylru.md) ^1.2.1
- [ramda](https://npm.io/package/ramda.md) ^0.26.1
- [log4js](https://npm.io/package/log4js.md) ^6.1.0
- [moment](https://npm.io/package/moment.md) ^2.24.0
- [cluster](https://npm.io/package/cluster.md) ^0.7.7
- [extend2](https://npm.io/package/extend2.md) ^1.0.0
- [koa-jwt](https://npm.io/package/koa-jwt.md) ^3.6.0
- [mongodb](https://npm.io/package/mongodb.md) ^3.4.0
- [utility](https://npm.io/package/utility.md) ^1.16.3
- [koa-body](https://npm.io/package/koa-body.md) ^4.1.1
- [statuses](https://npm.io/package/statuses.md) ^1.5.0
- [@hapi/joi](https://npm.io/package/@hapi/joi.md) ^17.0.0
- [commander](https://npm.io/package/commander.md) ^4.0.1
- [koa-route](https://npm.io/package/koa-route.md) ^3.2.0
- [koa2-cors](https://npm.io/package/koa2-cors.md) ^2.0.6
- [sanctuary](https://npm.io/package/sanctuary.md) ^2.0.2
- [validator](https://npm.io/package/validator.md) ^12.1.0
- [koa-router](https://npm.io/package/koa-router.md) 8.0.7
- [koa-static](https://npm.io/package/koa-static.md) ^5.0.0
- [superagent](https://npm.io/package/superagent.md) ^5.1.3
- [koa-compose](https://npm.io/package/koa-compose.md) ^4.1.0
- [sendmessage](https://npm.io/package/sendmessage.md) ^1.1.0
- [generic-pool](https://npm.io/package/generic-pool.md) ^3.7.1
- [jsonwebtoken](https://npm.io/package/jsonwebtoken.md) ^8.5.1
- [qcloudsms_js](https://npm.io/package/qcloudsms_js.md) ^0.1.1
- [ua-parser-js](https://npm.io/package/ua-parser-js.md) ^0.7.21
- [baidu-aip-sdk](https://npm.io/package/baidu-aip-sdk.md) ^2.4.5
- [cluster-client](https://npm.io/package/cluster-client.md) ^3.0.1
- [path-to-regexp](https://npm.io/package/path-to-regexp.md) ^6.1.0
- [qcloud-cos-sts](https://npm.io/package/qcloud-cos-sts.md) ^3.0.2
- [superagent-retry](https://npm.io/package/superagent-retry.md) ^0.6.0
- [cos-nodejs-sdk-v5](https://npm.io/package/cos-nodejs-sdk-v5.md) 2.5.14
- [tencentcloud-sdk-nodejs](https://npm.io/package/tencentcloud-sdk-nodejs.md) ^3.0.117

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 0.1.57 (latest) — 2020-02-18
- 0.1.56 — 2020-02-13
- 0.1.55 — 2020-02-12
- 0.1.54 — 2020-02-12
- 0.1.53 — 2020-02-11
- 0.1.52 — 2020-02-08
- 0.1.51 — 2020-02-08
- 0.1.50 — 2020-02-07
- 0.1.49 — 2020-02-07
- 0.1.48 — 2020-02-07
- 0.1.47 — 2020-02-07
- 0.1.46 — 2020-02-07
- 0.1.45 — 2020-02-07
- 0.1.44 — 2020-02-07
- 0.1.43 — 2020-02-07
- … 49 more at https://npm.io/package/yinxing/versions

## README

# 银杏

[![travis_Build Status](https://travis-ci.com/birdsofsummer/yinxing.svg?branch=master)](https://travis-ci.com/birdsofsummer/yinxing)

[![Build Status](https://github.com/birdsofsummer/yinxing/workflows/publish/badge.svg)](https://github.com/birdsofsummer/yinxing/actions)  

[![Actions Status](https://github.com/birdsofsummer/yinxing/workflows/publish/badge.svg)](https://github.com/birdsofsummer/yinxing/actions) 


##

https://www.npmjs.com/package/yinxing

```bash
# 本地模拟云端环境

    cnpm i -g cos-nodejs-sdk-v5
    cnpm i -g qcloudapi-sdk
    cnpm i -g tencentcloud-sdk-nodejs
    cnpm i -g base64-js
    cnpm i -g buffer
    cnpm i -g crypto-browserify
    cnpm i -g ieee754
    cnpm i -g imagemagick
    cnpm i -g isarray
    cnpm i -g jmespath
    cnpm i -g lodash
    cnpm i -g punycode
    #cnpm i -g puppeteer
    cnpm i -g querystring
    cnpm i -g request
    cnpm i -g sax
    cnpm i -g url
    cnpm i -g uuid
    cnpm i -g xml2js
    cnpm i -g xmlbuilder


    export SecretId=****
    export SecretKey=****
    export Region=****
    export Bucket=****
    export Prefix=****
    export COS_HOST=****
    export maxFileSize=****
    export CosBucketName=****
    export CosObjectName=****
    export CosBucketRegion=****
    export ZipFile=****
    export CodeSource=****
    export DemoId=****
    export TempCosObjectName=****
    export GitUrl="https://github.com/xxx/xxx"
    export GitRepository=****
    export GitUserName=****
    export GitPassword=****
    export GitPasswordSecret=****
    export GitBranch=****
    export GitDirectory=****
    export GitCommitId=****
    export GitUserNameSecret=****

    export sms_test_phone=""
    export sms_AppID=""
    export sms_AppKey=""
    export sms_Sign=""
    export sms_templateId=""
    export sms_content="{1}为您的登录验证码，请于{2}分钟内填写。如非本人操作，请忽略本短信。" #

    export TOKEN_LIFE="86400"
    export TOKEN_AUD="aaaa"
    export TOKEN_SUB="cccc"
    export TOKEN_ALG="HS256"
    export TOKEN_TYP="JWT"

    npm install --save yinxing 


```




```javascript

const {
    fp,
    q,
    cache,
    db,
    cos,
    sms,
    router,
 //   middleware,
 //   action,
    token,
    //...
}=require("yinxing")





```


























## scf


https://cloud.tencent.com/document/product/583/11060


Node.js 8.9 云端自带库

```json

{
"dependencies":
    {
        "cos-nodejs-sdk-v5": "2.5.7",
        "base64-js": "1.2.1",
        "buffer": "5.0.7",
        "crypto-browserify": "3.11.1",
        "ieee754": "1.1.8",
        "imagemagick": "0.1.3",
        "isarray": "2.0.2",
        "jmespath": "0.15.0",
        "lodash": "4.17.4",
        "npm": "5.6.0",
        "punycode": "2.1.0",
        "puppeteer": "1.14.0",
        "qcloudapi-sdk": "0.1.5",
        "querystring": "0.2.0",
        "request": "2.87.0",
        "sax": "1.2.4",
        "tencentcloud-sdk-nodejs": "3.0.52",
        "url": "0.11.0",
        "uuid": "3.1.0",
        "xml2js": "0.4.17",
        "xmlbuilder": "9.0.1"
    }
}
```

https://cloud.tencent.com/document/product/583

## SCF CLI 

### install
  ```bash
    pip3 install scf  
    scf --version
  ```

### init
```bash
    scf init
    scf init --runtime python2.7 --name testproject --output-dir /Users/xxx/code/scf/
    scf init --runtime python2.7 --name hello 
    scf init --runtime nodejs6.10 --name hello 
    scf init --runtime nodejs8.9 --name hello 
    scf init --runtime python3.6 --name hello 
    scf init --runtime php5 --name hello 
    scf init --runtime php7 --name hello 
    scf init --runtime go1 --name hello 
    scf init --runtime nodejs 8.9 --name hello  --location http://..  --output-dir ./hello
```
### test
```bash
    scf local generate-event cos post
    scf local generate-event cos put
    scf local generate-event cos delete
    scf local generate-event timer timeup
    scf local generate-event apigateway proxy
    scf local generate-event apigateway proxy > event.json

    scf native invoke --template template.yaml --event event.json
    scf native generate-event cos post| scf native invoke --template template.yaml
    scf local  invoke --template template.yaml --event event.json
    scf local generate-event cos post | scf local invoke --template template.yaml
    scf local generate-event cos post | scf local invoke -t template.yaml testfunction
```
### deploy
```bash
   scf deploy
   scf deploy --cos-bucket temp-code-1253970226
   scf deploy -t deploy.yaml -f -c temp-code-1253970226 -n test-func -ns ccc -r ap-hongkong --skip-event
```

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