1.0.13 • Published 4 months ago

abler-tools v1.0.13

Weekly downloads
-
License
ISC
Repository
-
Last release
4 months ago

彭彭自用包:abler-tools

应用项目公用工具库(合集)

已将以下包合并为一个包:

abler-i18n

abler-util

abler-db

abler-messenger

abler-fs-oss

abler-net

abler-api

abler-tpp

abler-drm-tool(abler-drm-tool已分离,并依赖此abler-tools包)

安装

npm i abler-tools

引用

const {ppUtil,apiUtil, preconditions, ...} = require("abler-tools");
const conf = require('../config/config');
const errCfg = require('../config/error');
apiUtil.config(conf, err);

......

async function initService() {
	// 支持各种服务之前,检查前置条件是否满足
    let ok = await preconditions
        .addChecker(preconditions.checkExEnvSetting, (jsfile) => require(jsfile), true)
        .addChecker(preconditions.initDb)
        .addChecker(preconditions.checkRedis)
        .addChecker(preconditions.initKvStorage, dbSql)
        // .addChecker(checkDbVer, undefined, true)
        // .addChecker(commonUtil.initCommonEnv)
        // .addChecker(cdsManager.registerDefaultAccounts)
        // .addChecker(cdsManager.registerDefaultApp)
        .checkAll();
    if (!ok) {
        setTimeout(() => {
            process.exit(0);
        }, 500);
        // process.exit(199);
        return ok;
    }
    console.log("前置条件检查完毕,启动服务...");
    ......
}
0.3.8

4 months ago

0.3.7

4 months ago

0.3.9

4 months ago

0.3.10

4 months ago

1.0.13

4 months ago

1.0.9

5 months ago

1.0.11

5 months ago

1.0.10

5 months ago

1.0.12

5 months ago

1.0.8

5 months ago

1.0.7

5 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

0.4.2

7 months ago

0.4.1

7 months ago

0.3.6

9 months ago

0.3.5

9 months ago

0.3.0

9 months ago

0.3.2

9 months ago

0.3.1

9 months ago

0.3.4

9 months ago

0.3.3

9 months ago

0.1.41

11 months ago

0.1.42

11 months ago

0.1.40

11 months ago

0.1.38

11 months ago

0.1.39

11 months ago

0.1.37

11 months ago

0.1.35

11 months ago

0.1.34

11 months ago

0.1.32

12 months ago

0.1.30

12 months ago

0.1.31

12 months ago

0.1.29

12 months ago

0.1.28

12 months ago

0.1.26

1 year ago

0.1.25

1 year ago

0.1.23

1 year ago

0.1.22

1 year ago

0.1.21

1 year ago

0.1.20

1 year ago

0.1.19

1 year ago

0.1.18

1 year ago

0.1.16

1 year ago

0.1.17

1 year ago

0.1.15

1 year ago

0.1.14

1 year ago

0.1.12

1 year ago

0.1.13

1 year ago

0.1.11

1 year ago

0.1.10

1 year ago

0.1.9

1 year ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.4

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago