# phantom-ownpropertynames

> Fix Object.getOwnPropertyNames behavior for functions in PhantomJS 1.9

Latest version **1.0.0** (published 2015-06-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install phantom-ownpropertynames
pnpm add phantom-ownpropertynames
yarn add phantom-ownpropertynames
bun add phantom-ownpropertynames
```

## 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 | 2015-06-19 |
| First published | 2015-06-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ben Drucker |
| Maintainers | bendrucker |
| Keywords | phantom, shim, patch, object, function, own, property, names |

## Links

- npm: https://www.npmjs.com/package/phantom-ownpropertynames
- Repository: https://github.com/bendrucker/phantom-ownpropertynames
- Homepage: https://github.com/bendrucker/phantom-ownpropertynames#readme
- Issues: https://github.com/bendrucker/phantom-ownpropertynames/issues
- npm.io page: https://npm.io/package/phantom-ownpropertynames

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-06-19

## README

# phantom-ownpropertynames [![Build Status](https://travis-ci.org/bendrucker/phantom-ownpropertynames.svg?branch=master)](https://travis-ci.org/bendrucker/phantom-ownpropertynames)

> Fix `Object.getOwnPropertyNames` behavior for functions in PhantomJS 1.9


## Install

```
$ npm install --save phantom-ownpropertynames
```


## Usage

Detect whether `Object.getOwnPropertyNames` is broken and shim if it is:

```js
require('phantom-ownpropertynames/implement')
```

Or just get the patched function directly:

```
var getOwnPropertyNames = require('phantom-ownpropertynames')
getOwnPropertyNames({foo: 'bar'})
// => ['foo']
```

## API

#### `getOwnPropertyNames(obj)` -> `array`

##### obj

*Required*  
Type: `object`

## License

MIT © [Ben Drucker](http://bendrucker.me)

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