lexirank
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

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

Package Sidebar

Install

npm i lexirank

Weekly Downloads

6

Version

0.1.3

License

MIT

Unpacked Size

9.67 kB

Total Files

6

Last publish

Collaborators

  • az33zy