包详细信息

lexirank

az33zy15MIT0.1.3

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

lexicographic, ranking, lexorank, ordered lists

自述文件

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

更新日志

lexirank

0.1.3

Patch Changes

  • d00c550: feat: add alphanumeric charset

0.1.2

Patch Changes

  • e0cbe0a: automate workflow