# place-box

> Places a box within a boundary using a set of coordinates

Latest version **1.1.0** (published 2019-09-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install place-box
pnpm add place-box
yarn add place-box
bun add place-box
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2019-09-01 |
| First published | 2019-08-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 16.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Christian Hamburger Grøngaard |
| Maintainers | christianhg |
| Keywords | geometry, rectangles, boxes, coordinates, placement |

## Links

- npm: https://www.npmjs.com/package/place-box
- Repository: https://github.com/christianhg/place-box
- Issues: https://github.com/christianhg/place-box/issues
- npm.io page: https://npm.io/package/place-box

## Recent versions

- 1.1.0 (latest) — 2019-09-01
- 1.0.0 — 2019-08-30

## README

# Place Box

> Places a box within a boundary using a set of coordinates.

[![npm module](https://badge.fury.io/js/place-box.svg)](https://www.npmjs.org/package/place-box)
[![Coverage Status](https://coveralls.io/repos/github/christianhg/place-box/badge.svg?branch=master)](https://coveralls.io/github/christianhg/place-box?branch=master)
[![Build Status](https://travis-ci.org/christianhg/place-box.svg?branch=master)](https://travis-ci.org/christianhg/place-box)
[![Dependencies](https://david-dm.org/christianhg/place-box.svg)](https://david-dm.org/christianhg/place-box)
[![devDependencies Status](https://david-dm.org/christianhg/place-box/dev-status.svg)](https://david-dm.org/christianhg/place-box?type=dev)

```js
placeBox({
  boundary: { width: 200, height: 100 },
  coordinates: { x: 100, y: 50 },
  box: { width: 50, height: 50 },
});
// => { left: 75, top: 25 }
```

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