JSPM

  • Created
  • Published
  • Downloads 3800021
  • Score
    100M100P100Q211869F
  • License MIT

javascript standard data structure library which benchmark against C++ STL

Package Exports

  • js-sdsl
  • js-sdsl/dist/cjs/index.js
  • js-sdsl/dist/esm/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (js-sdsl) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

js-sdsl

A javascript standard data structure library which benchmark against C++ STL

Included data structures

  • Vector
  • Stack
  • Queue
  • LinkList
  • Deque
  • PriorityQueue
  • Set (using RBTree)
  • Map (using RBTree)

Supported platforms

  • node.js (using commonjs)
  • react/vue (using es5)
  • browser (support most browsers including IE8+)

Download

Download directly

Or install js-sdsl using npm

npm install js-sdsl

Usage

To help you have a better use, we provide this API document (it will come soon).

For Browser

<!-- you can download the file locally and import it or import it dynamically by using url. -->
<script src="https://zly201.github.io/js-sdsl/js-sdsl.min.js"></script>
<script>
    const { Vector } = sdsl;
    const myVector = new Vector();
    // you code here...
</script>

Other

Just like other packages.

If you want to get more help, viewing src/test.ts may help.

Build by source code

You can pull this repository and run yarn build to rebuild this library.

Unit test

Before publishing, we conducted strict unit tests on each function, you can see testResult.txt to find our test results or run yarn test to reproduce it.

License

This project is MIT licensed.