Skip to content

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

License

Notifications You must be signed in to change notification settings

az33zy/lexirank

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project