1.0.8 • Published 7 months ago

excel-column-id v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Excel Column ID

npm Downloads Build Status

Generate IDs similar to Excel column ID.

Usage

npm i excel-column-id
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:

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

Parameters

NameTypeDescription
indexnumberIndex of the ID, starting from 0.

Returns

string

ID string

License

MIT © Zhao DAI daidodo@gmail.com

1.0.8

7 months ago

1.0.7

7 months ago

1.0.6

1 year ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

3 years ago