0.1.3 • Published 5 months ago

lexirank v0.1.3

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

LexiRank

Version Bundle Size License

Ranking system for ordered lists that leverages lexicographic ordering feature of strings.

Installation

NPM

npm i lexirank

PNPM

pnpm add lexirank

Yarn

yarn add lexirank

Bun

bun add lexirank

Usage

import { LexiRank, AsciiPrintableCharSet } from "lexirank"

const lexirank = new LexiRank(new AsciiPrintableCharSet())

const mid = lexirank.mid() // "O"
const beforeMid = lexirank.before(mid) // "8"
const afterMid = lexirank.after(mid) // "f"
const between = lexirank.between("A", "C") // "B"

License

MIT

0.1.3

5 months ago

0.1.2

5 months ago

0.1.1

5 months ago

0.1.0

5 months ago