# excel-column-id

> Generate IDs similar to Excel column ID.

Latest version **1.0.9** (published 2025-07-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install excel-column-id
pnpm add excel-column-id
yarn add excel-column-id
bun add excel-column-id
```

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2025-07-31 |
| First published | 2022-12-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Zhao DAI |
| Maintainers | wqqafnd |
| Keywords | Microsoft, Excel, generate, string, column, id |

## Links

- npm: https://www.npmjs.com/package/excel-column-id
- Repository: https://github.com/daidodo/excel-column-id
- Homepage: https://github.com/daidodo/excel-column-id#readme
- Issues: https://github.com/daidodo/excel-column-id/issues
- npm.io page: https://npm.io/package/excel-column-id

## Dependencies (1)

- [@dozerg/condition](https://npm.io/package/@dozerg/condition.md) ^1.0.11

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.9 (latest) — 2025-07-31
- 1.0.8 — 2024-12-21
- 1.0.7 — 2024-11-30
- 1.0.6 — 2024-04-05
- 1.0.5 — 2023-12-10
- 1.0.4 — 2023-12-01
- 1.0.3 — 2023-09-01
- 1.0.2 — 2023-03-29
- 1.0.1 — 2022-12-04

## README

# Excel Column ID

<!--
First publish:

```sh
npm publish --access public
```
-->

[![npm](https://img.shields.io/npm/v/excel-column-id.svg)](https://www.npmjs.com/package/excel-column-id)
![Downloads](https://img.shields.io/npm/dm/excel-column-id.svg)
[![Build Status](https://github.com/daidodo/excel-column-id/actions/workflows/node.js.yml/badge.svg)](https://github.com/daidodo/excel-column-id/actions)

Generate IDs similar to Excel column ID.

# Usage

```sh
npm i excel-column-id
```

```ts
import generateId from 'excel-column-id';

const A = generateId(0);   // 'A'
const B = generateId(1);   // 'B'
const AA = generateId(26); // 'AA'
```

# APIs

## generateId

▸ **generateId**(`index`): `string`

Generate IDs similar to Microsoft Excel column IDs:

```txt
  A, B, C, ...,
  AA, AB, AC, ...,
  BA, BB, BC, ...,
  ...
```

#### Parameters

| Name    | Type     | Description                       |
| :------ | :------- | :-------------------------------- |
| `index` | `number` | Index of the ID, starting from 0. |

#### Returns

`string`

ID string

# License

MIT © Zhao DAI <daidodo@gmail.com>

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