# magic-lists

> A collection of list classes with special properties.

Latest version **0.1.2** (published 2016-05-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install magic-lists
pnpm add magic-lists
yarn add magic-lists
bun add magic-lists
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2016-05-10 |
| First published | 2016-05-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | eliaslfox |

## Links

- npm: https://www.npmjs.com/package/magic-lists
- Repository: https://github.com/eliaslfox/magic-lists
- Homepage: https://github.com/eliaslfox/magic-lists#readme
- Issues: https://github.com/eliaslfox/magic-lists/issues
- npm.io page: https://npm.io/package/magic-lists

## Dependencies (3)

- [chai](https://npm.io/package/chai.md) ^3.5.0
- [mocha](https://npm.io/package/mocha.md) ^2.4.5
- [harmony-proxy](https://npm.io/package/harmony-proxy.md) ^1.0.1

## Recent versions

- 0.1.2 (latest) — 2016-05-10
- 0.1.1 — 2016-05-10
- 0.1.0 — 2016-05-10
- 0.0.0 — 2016-05-10

## README

# Magic Lists

[![NPM](https://nodei.co/npm/magic-lists.png?downloads=true)](https://nodei.co/npm/magic-lists/)

[![Build Status](https://travis-ci.org/eliaslfox/magic-lists.svg?branch=master)](https://travis-ci.org/eliaslfox/magic-lists) ![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg) ![](https://img.shields.io/npm/l/magic-lists.svg)

Magic lists is a small library for special lists.

## Setup

First install the library

```
npm install magic-lists
```

Then include it in your project

```js
const MagicLists = require('magic-lists')
```



## Types of Lists

### Sorted List
A list whose contents are always filtered.

```js
const SortedList = MagicLists.sortedList
let sorted = new SortedList()
sorted.push(7)
sorted.push(3)
sorted.push(6)
sorted.get() //[3, 6, 7]
```

#### Notes

`sorted` takes two optional arguments

* The first being an array for initial value
* A function to override the default sorting function

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