# poser

> Create clean arrays, or anything else, which you can safely extend

Latest version **1.2.0** (published 2014-10-08) · MIT license · 0 weekly downloads

## Install

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

## 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.2.0 |
| Published | 2014-10-08 |
| First published | 2014-06-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 44 |
| Author | Nicolas Bevacqua |
| Maintainers | bevacqua |

## Links

- npm: https://www.npmjs.com/package/poser
- Repository: https://github.com/bevacqua/poser
- Issues: https://github.com/bevacqua/poser/issues
- npm.io page: https://npm.io/package/poser

## Recent versions

- 1.2.0 (latest) — 2014-10-08
- 1.1.5 — 2014-10-01
- 1.1.4 — 2014-06-28
- 1.1.3 — 2014-06-22
- 1.1.0 — 2014-06-07
- 1.0.4 — 2014-06-07
- 1.0.3 — 2014-06-07
- 1.0.2 — 2014-06-07

## README

# poser

> Create clean arrays, _or anything else_, which you can safely extend


# Install

Using Bower

```shell
bower install -S poser
```

Using `npm`

```shell
npm install -S poser
```

# `poser(type)`

Gives you the `type` global from another execution context. The context is different every time, giving you references in different contexts.

## `poser.Array()`

Shortcut to get an `Array` from another context. Equivalent to `poser('Array')`.

## `poser.Object()`

Shortcut to get an `Object` from another context. Equivalent to `poser('Object')`.

## `poser.Function()`

Shortcut to get an `Function` from another context. Equivalent to `poser('Function')`.

## `poser.Date()`

Shortcut to get an `Date` from another context. Equivalent to `poser('Date')`.

## `poser.String()`

Shortcut to get an `String` from another context. Equivalent to `poser('String')`.

##### Example

```js
var Array2 = require('poser').Array();
// <- Array

Array2.prototype.eat = function () {
  var r = this[0];
  delete this[0];
  console.log('Y U NO .shift()?');
  return r;
};

var a = new Array2(3, 5, 7);

a.eat();
// <- 3

console.log(Object.prototype.toString.call(a));
// <- [object Array]

console.log(Array === Array2);
// <- false
```

# License

MIT

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