# ds-js-x

> JavaScript Data Structure by Johnson Han

Latest version **1.0.15** (published 2019-11-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install ds-js-x
pnpm add ds-js-x
yarn add ds-js-x
bun add ds-js-x
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.15 |
| Published | 2019-11-28 |
| First published | 2018-05-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 18.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Johnson Han |
| Maintainers | x65han |
| Keywords | JavaScript, Data Structure, Linked List, Stack, Queue, Binary Search Tree, Priority Queue |

## Links

- npm: https://www.npmjs.com/package/ds-js-x
- Repository: https://github.com/x65han/ds-js-x
- Homepage: https://github.com/x65han/ds-js-x#readme
- Issues: https://github.com/x65han/ds-js-x/issues
- npm.io page: https://npm.io/package/ds-js-x

## Alternatives

- [cron](https://npm.io/package/cron.md) — 4.9M weekly downloads
- [@vercel/queue](https://npm.io/package/@vercel/queue.md) — 731.6K weekly downloads
- [create-sonicjs](https://npm.io/package/create-sonicjs.md) — 1.6K weekly downloads
- [@exellix/jobs-api](https://npm.io/package/@exellix/jobs-api.md) — 941 weekly downloads
- [@forwardimpact/libskill](https://npm.io/package/@forwardimpact/libskill.md) — 575 weekly downloads

## Recent versions

- 1.0.15 (latest) — 2019-11-28
- 1.0.14 — 2019-11-28
- 1.0.11 — 2019-11-24
- 1.0.10 — 2019-11-24
- 1.0.9 — 2019-11-24
- 1.0.8 — 2019-11-24
- 1.0.7 — 2019-11-24
- 1.0.5 — 2019-11-24
- 1.1.0 — 2019-11-23
- 1.0.6 — 2018-05-29
- 1.0.4 — 2018-05-29
- 1.0.3 — 2018-05-29
- 1.0.2 — 2018-05-29
- 1.0.1 — 2018-05-29
- 1.0.0 — 2018-05-29

## README

# ds-js-x

[View Documentation](https://ds-js-x.herokuapp.com/)

JavaScript Data Structure Library for leetcoding or general use.
Currently supports:
- LinkedList
- Stack
- Queue
- Binary Search Tree
- Heap (Min & Max)
- Priority Queue
- Disjoint Set
- Segment Tree

# Installation
```sh
npm i --save ds-js-x
```

# Documentation
[View Documentation](https://ds-js-x.herokuapp.com/)

# Usage

```diff
- Imports all data structure:
+ let DS = require('ds-js-x');
+ DS.help();

-Imports BinarySearchTree:
+ let tree = new DS.BinarySearchTree();

-Imports LinkedList:
+ let list = new DS.LinkedList();

- Imports Stack:
+ let stack = new DS.Stack();

- Imports Queue:
+ let queue = new DS.Queue();

- Imports Max Heap:
+ let heap = new DS.PriorityQueue();

- Imports Min Heap:
+ let heap = new DS.PriorityQueue((a, b) => a - b < 0);

- Imports Priority Queue:
+ let queue = new DS.PriorityQueue(comparator);
```

# Development
- `src` folder contains the implementation details
    - `npm run build` to produce build/ folder
    - `npm run test` to run all testcases
- `build` folder contains the version to be published
- `test` folder contains integration testing code
    - Download the latest version of ds-js-x
    - Use this package as if you are the actual user

---
_Source: https://npm.io/package/ds-js-x · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
