# is-get-set-prop

> Does a JS type have a getter/setter property

Latest version **2.0.0** (published 2024-06-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-get-set-prop
pnpm add is-get-set-prop
yarn add is-get-set-prop
bun add is-get-set-prop
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2024-06-03 |
| First published | 2015-11-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | > 18.0.0 |
| Dependencies | 2 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Dustin Specker |
| Maintainers | dustinspecker |
| Keywords | js, javascript, getter, get, setter, set, types |

## Links

- npm: https://www.npmjs.com/package/is-get-set-prop
- Repository: https://github.com/dustinspecker/is-get-set-prop
- Homepage: https://github.com/dustinspecker/is-get-set-prop#readme
- Issues: https://github.com/dustinspecker/is-get-set-prop/issues
- npm.io page: https://npm.io/package/is-get-set-prop

## Dependencies (2)

- [get-set-props](https://npm.io/package/get-set-props.md) ^0.2.0
- [lowercase-keys](https://npm.io/package/lowercase-keys.md) ^3.0.0

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 2.0.0 (latest) — 2024-06-03
- 1.0.0 — 2015-11-01

## README

# is-get-set-prop
[![NPM version](https://badge.fury.io/js/is-get-set-prop.svg)](https://badge.fury.io/js/is-get-set-prop) [![Coverage Status](https://img.shields.io/coveralls/dustinspecker/is-get-set-prop.svg)](https://coveralls.io/r/dustinspecker/is-get-set-prop?branch=main)

[![Code Climate](https://codeclimate.com/github/dustinspecker/is-get-set-prop/badges/gpa.svg)](https://codeclimate.com/github/dustinspecker/is-get-set-prop)

> Does a JS type have a getter/setter property

## Install
```
npm install --save is-get-set-prop
```

## Usage
### ES2015
```javascript
import isGetSetProp from 'is-get-set-prop';

isGetSetProp('array', 'length');
// => true

isGetSetProp('ARRAY', 'push');
// => false

// is-get-set-prop can only verify native JS types
isGetSetProp('gulp', 'task');
// => false;
```

## API
### isGetSetProp(type, propertyName)
#### type
Type: `string`

A native JS type to examine. Note: `is-get-set-prop` can only verify native JS types.

#### propertyName
Type: `string`

Property name to determine if a getter/setter of `type`.

## LICENSE
MIT © [Dustin Specker](https://github.com/dustinspecker)

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