# minimum-relocation

Latest version **1.0.0** (published 2019-01-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install minimum-relocation
pnpm add minimum-relocation
yarn add minimum-relocation
bun add minimum-relocation
```

## 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.0 |
| Published | 2019-01-24 |
| First published | 2019-01-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 1.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | mansi4444 |

## Links

- npm: https://www.npmjs.com/package/minimum-relocation
- npm.io page: https://npm.io/package/minimum-relocation

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) ^4.17.11
- [js-combinatorics](https://npm.io/package/js-combinatorics.md) ^0.5.4

## Recent versions

- 1.0.0 (latest) — 2019-01-24

## README

# Find minimum relocations


Install
```javascript
npm install minimum-relocation
```

Import module
```javascript
let mindistpath = require("minimum-relocation")
```

Use module

```javascript
//input should be in following format

let input = [{
    id: 1, x: 50, y: 80
},{
    id: 2, x: 150, y: 70
},{
    id: 3, x: 80, y: 100
} ]


//invoke module to get the minimum distance path

let bestpath = mindistpath(input);

//get the result in following format
[ '2', '1', '3' ]

```

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