# invert-permutation

> Inverts permutations

Latest version **1.0.0** (published 2014-04-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install invert-permutation
pnpm add invert-permutation
yarn add invert-permutation
bun add invert-permutation
```

## 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 | 2014-04-30 |
| First published | 2013-03-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Mikola Lysenko |
| Maintainers | mikolalysenko |
| Keywords | permutation, group, inverse |

## Links

- npm: https://www.npmjs.com/package/invert-permutation
- Repository: https://github.com/mikolalysenko/invert-permutation
- Issues: https://github.com/mikolalysenko/invert-permutation/issues
- npm.io page: https://npm.io/package/invert-permutation

## Recent versions

- 1.0.0 (latest) — 2014-04-30
- 0.1.0 — 2013-11-04
- 0.0.0 — 2013-03-04

## README

invert-permutation
==================
Computes the [inverse of a permutation](http://en.wikipedia.org/wiki/Permutation#Product_and_inverse)

Example
========

```javascript
console.log( require("invert-permutation")([1,3,0,2]) )

//Prints:
//          [ 2, 1, 3, 0 ]
```

# Install

    npm install invert-permutation

# API

## `require("invert-permutation")(perm[, result])
Inverts a permutation

* `perm` is the permutation to invert
* `result` is an optional array that gets the result of inverting the permutation

**Returns** `result` or a newly allocated array if nothing is specified

Credits
=======
(c) 2013 Mikola Lysenko. MIT License

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