
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@ivanvolti/lexorank
Advanced tools
Implementation of a list ordering system like JIRA's Lexorank algorithm
A reference implementation of a list ordering system like JIRA's Lexorank algorithm.
This was forked from https://github.com/kvandake/lexorank-ts in October 2024 because, unfortunately, the maintainer appears to have abandoned their project.
Npm
npm install @dalet-oss/lexorank
Yarn
yarn add @dalet-oss/lexorank
import { LexoRank } from '@dalet-oss/lexorank';
// min
const minLexoRank = LexoRank.min();
// max
const maxLexoRank = LexoRank.max();
// middle
const middleLexoRank = LexoRank.middle();
// parse
const parsedLexoRank = LexoRank.parse('0|0i0000:');
import { LexoRank } from '@dalet-oss/lexorank';
// any lexoRank
const lexoRank = LexoRank.middle();
// generate next lexorank
const nextLexoRank = lexoRank.genNext();
// generate previous lexorank
const prevLexoRank = lexoRank.genPrev();
// toString
const lexoRankStr = lexoRank.toString();
LexRank calculation based on existing LexoRanks.
import { LexoRank } from '@dalet-oss/lexorank';
// any lexorank
const any1LexoRank = LexoRank.min();
// another lexorank
const any2LexoRank = any1LexoRank.genNext().genNext();
// calculate between
const betweenLexoRank = any1LexoRank.between(any2LexoRank);
// calculate between lexoRanks
const betweenLexoRanks = any1LexoRank.multipleBetween(any2LexoRank, 5);
MIT
I have not found information about the license of the algorithm LexoRank. If the rights are violated, please contact me to correct the current license.
FAQs
Implementation of a list ordering system like JIRA's Lexorank algorithm
The npm package @ivanvolti/lexorank receives a total of 9 weekly downloads. As such, @ivanvolti/lexorank popularity was classified as not popular.
We found that @ivanvolti/lexorank demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.