@flighter/a1-notation

中文文档
3.0.0发布于 2026/07/10MITTypeScriptESM + CJS零依赖近 30 天下载 4952

Work with A1 notation like "A1" or "A1:B2"

原始使用文档
文档目录8 节
  1. About
  2. Install
  3. Download
  4. What is the difference?
  5. Initialization
  6. API
  7. License
  8. Changelog

A1 notation

About

This library is for working with A1 notations such as "A1" or "A1:B2". It's published for both ESM (import) and CommonJS (require), so it works on new and old Node alike.

Install

npm i @flighter/a1-notation -d

Or

yarn add @flighter/a1-notation

Download

Browser IIFE, minified (5 KB), ESM, CommonJS

What is the difference?

  • converter 1 or converter 2? The difference is in the algorithm of convertation. You can compare the first method with the second method.
  • Browser IIFE? Minified bundle for a direct <script> tag (exposes a global A1).
  • ESM/CommonJS? Both are the same code, published untranspiled/unminified so your own bundler can process them; import/require resolve to the right one automatically via package.json#exports.

Initialization

// ESM
import A1 from '@flighter/a1-notation';
// CommonJS
const A1 = require('@flighter/a1-notation');

API

Note: A1 string could be represented in any register. A1 === a1, A1:B2 === a1:b2 === A1:b2 === a1:B2

License

MIT

Changelog

The latest updates

版本与发布记录

@flighter/a1-notation 共发布 17 个版本,首次发布于 2019/11/05;过去 12 个月发布了 1 个版本。

版本发布日期距今
3.0.0latest2026/07/104 个月前
2.2.12024/10/042 年前
2.2.02024/10/042 年前
2.1.32022/09/104 年前
2.1.22021/11/045 年前
2.1.12021/11/045 年前

关于 @flighter/a1-notation 的常见问题

@flighter/a1-notation 是什么?

Work with A1 notation like "A1" or "A1:B2"

如何安装 @flighter/a1-notation?

在项目目录运行 npm install @flighter/a1-notation,或使用 pnpm add / yarn add / bun add。

@flighter/a1-notation 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@flighter/a1-notation 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@flighter/a1-notation 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=14。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@flighter/a1-notation 可以商用吗?

@flighter/a1-notation 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@flighter/a1-notation 的下载量有多少?

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

@flighter/a1-notation 还在维护吗?

最新版本 3.0.0 发布于 2026/07/10(4 个月前);至今共发布 17 个版本,其中过去 12 个月发布了 1 个;首次发布于 2019/11/05。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。