sorted-containers - v0.3.0

Sorted Containers for JavaScript

Work in progress.

Status: All three types of containers work. Published on npm. Polish pending.


npm version Test minzipped size MIT license

sorted-containers is an MIT-licensed ordered collections library written in JavaScript. It aims to be the fastest of its kind.

This library is heavily inspired by the sortedcontainers Python library by Grant Jenks.

  • 0 dependencies
  • 100% TypeScript
  • Isomorphic among browsers, Node.js, and other runtimes

Installing sorted-containers is simple with npm:

npm install sorted-containers

You can access documentation in your editor with IntelliSense for TypeScript. The API is fully documented and discoverable.

Complete documentation for sorted-containers is available at https://satgo1546.github.io/sorted-containers/.

Copyright © 2025 Frog Chen. Licensed under the MIT license.