# array-to-btree

> Helper Method to flatten an array to Binary Tree

Latest version **1.0.1** (published 2014-05-21) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install array-to-btree
pnpm add array-to-btree
yarn add array-to-btree
bun add array-to-btree
```

## 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.1 |
| Published | 2014-05-21 |
| First published | 2014-05-21 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ramesh Mahadevan |
| Maintainers | rameshrm |
| Keywords | algorithms, array, to, btree |

## Links

- npm: https://www.npmjs.com/package/array-to-btree
- Repository: https://github.com/RameshRM/Algorithms
- Issues: https://github.com/RameshRM/Algorithms/issues
- npm.io page: https://npm.io/package/array-to-btree

## Dependencies (2)

- [chai](https://npm.io/package/chai.md) *
- [mocha](https://npm.io/package/mocha.md) *

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2014-05-21
- 1.0.0 — 2014-05-21

## README

ArrayToBtree [![Build Status](https://travis-ci.org/RameshRM/ArrayToBtree.svg?branch=master)](https://travis-ci.org/RameshRM/ArrayToBtree)
===============

#### Summary

```ArrayToBtree``` is a javcript implementation of building a "Binary tree" from an "Un-Ordered" array.  The Tree is not a fully weighted binary tree, but provides an API to convert an array to a tree datastructure.

#### Installation
```
npm install -g array-to-btree
```


#### Sample Usage

```javascript

var tree = require('array-to-btree');
var inputList = [3,5,8,9,11,12,13,15];
function build(input){
   return tree.toBTree(input);
}
```

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