# @c42/commons

> c42 项目通用工具包。

Latest version **18.6.1** (published 2022-02-08) · UNLICENSED license · 0 weekly downloads

## Install

```sh
npm install @c42/commons
pnpm add @c42/commons
yarn add @c42/commons
bun add @c42/commons
```

## 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 | 18.6.1 |
| Published | 2022-02-08 |
| First published | 2018-03-07 |
| Weekly downloads | 0 |
| License | UNLICENSED |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 8.11.1 |
| Dependencies | 43 |
| Unpacked size | 196.1 KB |
| Known vulnerabilities | 0 (+39 in 4 direct dependencies) |
| Install scripts | no |
| Maintainers | lanbing45, beeplin |

## Links

- npm: https://www.npmjs.com/package/@c42/commons
- npm.io page: https://npm.io/package/@c42/commons

## Dependencies (43)

- [ajv](https://npm.io/package/ajv.md) ^6.5.3
- [uws](https://npm.io/package/uws.md) 10.148.1
- [cors](https://npm.io/package/cors.md) ^2.8.4
- [axios](https://npm.io/package/axios.md) ^0.18.0
- [sinon](https://npm.io/package/sinon.md) ^6.1.5
- [helmet](https://npm.io/package/helmet.md) ^3.13.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.10
- [multer](https://npm.io/package/multer.md) ^1.3.1
- [zxcvbn](https://npm.io/package/zxcvbn.md) ^4.4.2
- [ioredis](https://npm.io/package/ioredis.md) ^4.0.0
- [mongodb](https://npm.io/package/mongodb.md) ^3.1.4
- [shortid](https://npm.io/package/shortid.md) ^2.2.13
- [winston](https://npm.io/package/winston.md) =2.4.2
- [fs-extra](https://npm.io/package/fs-extra.md) ^7.0.0
- [traverse](https://npm.io/package/traverse.md) ^0.6.6
- [cross-env](https://npm.io/package/cross-env.md) ^5.2.0
- [validator](https://npm.io/package/validator.md) ^10.7.1
- [compression](https://npm.io/package/compression.md) ^1.7.3
- [power-assert](https://npm.io/package/power-assert.md) ^1.6.0
- [cookie-parser](https://npm.io/package/cookie-parser.md) ^1.4.3
- [serve-favicon](https://npm.io/package/serve-favicon.md) ^2.5.0
- [babel-register](https://npm.io/package/babel-register.md) ^6.26.0
- [feathers-logger](https://npm.io/package/feathers-logger.md) ^0.3.2
- [feathers-memory](https://npm.io/package/feathers-memory.md) ^2.2.0
- [node-mocks-http](https://npm.io/package/node-mocks-http.md) ^1.7.0
- [feathers-mongodb](https://npm.io/package/feathers-mongodb.md) ^3.3.0
- [socket.io-client](https://npm.io/package/socket.io-client.md) ^2.1.1
- [feathers-profiler](https://npm.io/package/feathers-profiler.md) ^0.1.5
- [@feathersjs/errors](https://npm.io/package/@feathersjs/errors.md) ^3.3.2
- [@feathersjs/express](https://npm.io/package/@feathersjs/express.md) ^1.2.5
- [localstorage-memory](https://npm.io/package/localstorage-memory.md) ^1.0.2
- [@feathersjs/feathers](https://npm.io/package/@feathersjs/feathers.md) =3.1.7
- [@feathersjs/socketio](https://npm.io/package/@feathersjs/socketio.md) ^3.2.4
- [feathers-hooks-common](https://npm.io/package/feathers-hooks-common.md) ^4.16.3
- [@feathersjs/rest-client](https://npm.io/package/@feathersjs/rest-client.md) ^1.4.3
- [feathers-hooks-rediscache](https://npm.io/package/feathers-hooks-rediscache.md) 1.1.4
- [winston-daily-rotate-file](https://npm.io/package/winston-daily-rotate-file.md) ^3.3.2
- [@feathersjs/authentication](https://npm.io/package/@feathersjs/authentication.md) ^2.1.9
- [@feathersjs/socketio-client](https://npm.io/package/@feathersjs/socketio-client.md) ^1.1.2
- [@feathersjs/authentication-jwt](https://npm.io/package/@feathersjs/authentication-jwt.md) ^2.0.3
- [@feathersjs/authentication-local](https://npm.io/package/@feathersjs/authentication-local.md) ^1.2.3
- [@feathersjs/authentication-client](https://npm.io/package/@feathersjs/authentication-client.md) ^1.0.4
- [feathers-authentication-management](https://npm.io/package/feathers-authentication-management.md) ^2.0.1

## Recent versions

- 18.6.1 (latest) — 2022-02-08
- 18.6.0 — 2019-01-08
- 18.5.0 — 2018-12-21
- 18.4.1 — 2018-09-17
- 18.4.0 — 2018-09-17
- 18.3.3 — 2018-09-03
- 18.3.2 — 2018-08-27
- 18.3.1 — 2018-08-22
- 18.3.0 — 2018-07-02
- 18.2.0 — 2018-06-02
- 18.1.1 — 2018-06-02
- 18.1.0 — 2018-05-30
- 18.0.1 — 2018-05-29
- 18.0.0 — 2018-05-29
- 17.1.0 — 2018-05-29
- … 74 more at https://npm.io/package/@c42/commons/versions

## README

# c42-commons

c42 项目通用工具包。

## 安装

```bash
npm i @c42/commons
```

## 使用

详见 `/src` 下源码 jsdoc 注释。

## 发布

首先要确保正在使用 npm 官方源，可以使用 `nrm` 切换源：

```bash
npm i -g nrm
nrm ls
nrm use npm
```

其次要确保已经登录 npm，并且用户在 npm [@c42](https://www.npmjs.com/org/c42/members) 组织中有管理权限：

```bash
npm whoami
npm login
```

然后再 publish：

```bash
npm publish --access public
```

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