dherault / abc-list

Convert a to 0, z to 25, and reverse it

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

abc-list

Convert a to 0, z to 25, and reverse it

Installation

npm install --save abc-list

Usage

import { fromAbc, toAbc } from 'abc-list'

fromAbc('a') // 0
fromAbc('b') // 1
fromAbc('az') // 51
toAbc(0) // 'a'
toAbc(1) // 'b'
toAbc(51) // 'az'

License

MIT

About

Convert a to 0, z to 25, and reverse it

License:MIT License


Languages

Language:TypeScript 100.0%