New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

prioritizer

Package Overview
Dependencies
Maintainers
1
Versions
337
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prioritizer

Method to prioritize a list with persistence

latest
Source
npmnpm
Version
2.3.32
Version published
Weekly downloads
60
-1.64%
Maintainers
1
Weekly downloads
 
Created
Source

Prioritizer

Prioritize a list trying to minimize the number of comparisons

Create a prioritized list, inject the asynchronous comparison method, start adding items and at some point get them prioritized as an array

Check tests/tests.spec.js for examples of usage

Demo

To check a demo of the logic run

node demo

Run all tests

npm test

Keywords

prioritize

FAQs

Package last updated on 03 Dec 2025

Did you know?

Socket

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.

Install

Related posts