@autonomo/common

中文文档
1.2.13发布于 2022/11/10CommonJS近 30 天下载 1万

npm version [![install size](https://img.shields.io/badge/dynamic/json?url=https://packagephobia.com/v2/api.json?p=@autonomo/common&q

原始使用文档
文档目录7 节
  1. Table of Contents
  2. Installing
  3. Running in development mode
  4. Building
  5. Testing
  6. Publishing
  7. Example of use in other client repo

autonomo.common

npm version install size npm bundle size Known Vulnerabilities

A library that contains all needed common resources to be used in autonomo.api and autonomo.web repositories.

Table of Contents

Installing

npm install

Running in development mode

npm run dev

This will build the package and will watch for any change to re-build it.

Building

npm run build

Testing

# running tests once
npm run test

# running tests on every change on code
npm run test:watch

# running tests and getting coverage report
npm run test:coverage

Publishing

npm run publish:patch

A npm user must be configured in order to be able to publish it.

Example of use in other client repo

Install first autonomo.common in the repo

npm install @autonomo.common

Then you need to import the resource (interface, type, enum, util, ...) from root package

import { Business } from '@autonomo/common';

const business: Business = {
  key: 'myBusiness',
  name: 'My business',
  ...
}

版本与发布记录

@autonomo/common 共发布 42 个版本,首次发布于 2021/08/20;过去 12 个月发布了 0 个版本。

版本发布日期距今
1.2.13latest2022/11/103 年前
1.2.122022/10/114 年前
1.2.112022/10/114 年前
1.2.102022/09/224 年前
1.2.92022/07/264 年前
1.2.82022/07/234 年前

其他发布通道:master → 0.0.6。

关于 @autonomo/common 的常见问题

@autonomo/common 是什么?

[![install size](https://img.shields.io/badge/dynamic/json?url=https://packagephobia.com/v2/api.json?p=@autonomo/common&q

如何安装 @autonomo/common?

在项目目录运行 npm install @autonomo/common,或使用 pnpm add / yarn add / bun add。

@autonomo/common 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/autonomo__common 是否存在。

@autonomo/common 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@autonomo/common 可以商用吗?

@autonomo/common 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@autonomo/common 的下载量有多少?

根据 npm 官方下载统计,@autonomo/common 在 2026/10/07 – 2026/11/05 这 30 天内被下载 10,266 次,日均约 342 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@autonomo/common 还在维护吗?

最新版本 1.2.13 发布于 2022/11/10(3 年前);至今共发布 42 个版本,其中过去 12 个月发布了 0 个;首次发布于 2021/08/20。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。