# victor

> A JavaScript 2D vector class with methods for common vector operations

Latest version **1.1.0** (published 2015-08-31) · 0 weekly downloads

## Install

```sh
npm install victor
pnpm add victor
yarn add victor
bun add victor
```

## Health

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

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2015-08-31 |
| First published | 2013-08-19 |
| Weekly downloads | 0 |
| TypeScript types | separate (@types/victor) |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 843 |
| Author | Max Kueng |
| Maintainers | maxkueng |
| Keywords | vector, 2d |

## Links

- npm: https://www.npmjs.com/package/victor
- Repository: https://github.com/maxkueng/victor
- Homepage: http://victorjs.org/
- Issues: https://github.com/maxkueng/victor/issues
- npm.io page: https://npm.io/package/victor

## Recent versions

- 1.1.0 (latest) — 2015-08-31
- 1.0.0 — 2015-08-31
- 0.2.6 — 2014-10-06
- 0.2.5 — 2014-09-28
- 0.2.4 — 2014-09-26
- 0.2.3 — 2014-09-17
- 0.2.2 — 2014-09-17
- 0.2.1 — 2014-09-06
- 0.2.0 — 2014-09-06
- 0.1.4 — 2014-05-23
- 0.1.2 — 2014-05-21
- 0.1.1 — 2014-05-19
- 0.1.0 — 2014-05-19
- 0.0.1 — 2013-08-19

## README

![Victor](./artwork/logo.png)
=============================

[![Build Status](https://secure.travis-ci.org/maxkueng/victor.png?branch=master)](http://travis-ci.org/maxkueng/victor)

A Javascript 2D Vector Maths Library, built using the UMD standards, so you can use it as a global object or with any module loader. It works in both Node.js and the browser.

Check out the website for [documentation](http://victorjs.org/).

## Installation

### Node.js / Browserify

```bash
npm install victor --save
```

```javascript
var Victor = require('victor');
var vec = new Victor(42, 1337);
```

### Bower

```bash
bower install victor --save
```

### Global object

Include the pre-built script.

```html
<script src="./build/victor.js"></script>
<script>
var vec = new Victor(42, 1337);
</script>
```

## Build & test

```bash
npm run build
```

```bash
npm test
```

## Contributors

Ordered by date of first contribution. [Auto-generated](https://github.com/dtrejo/node-authors) on Mon, 31 Aug 2015 13:08:12 GMT.

- [Max Kueng](https://github.com/maxkueng) aka `maxkueng`
- [George Crabtree](https://github.com/supercrabtree) aka `supercrabtree`
- [Michel.Ypma](https://github.com/MichelYpma) aka `MichelYpma`
- [Chris Pearce](https://github.com/Chrisui) aka `Chrisui`
- [Beau Gunderson](https://github.com/beaugunderson) aka `beaugunderson`
- [René Bischoff](https://github.com/Fjandin) aka `Fjandin`
- [Chris Ertel](https://github.com/chrisrertel) aka `chrisrertel`
- [Heikki Ylönen](https://github.com/heikki) aka `heikki`
- [Joonas Salmela](https://github.com/undefined) aka `undefined`
- [Moritz Rebbert](https://github.com/ztiromoritz) aka `ztiromoritz`

## License

MIT

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