# is-property

> Tests if a JSON property can be accessed using . syntax

Latest version **1.0.2** (published 2014-12-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-property
pnpm add is-property
yarn add is-property
bun add is-property
```

## 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.2 |
| Published | 2014-12-25 |
| First published | 2013-07-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mikola Lysenko |
| Maintainers | mikolalysenko |
| Keywords | is, property, json, dot, bracket, ., [] |

## Links

- npm: https://www.npmjs.com/package/is-property
- Repository: https://github.com/mikolalysenko/is-property
- Issues: https://github.com/mikolalysenko/is-property/issues
- npm.io page: https://npm.io/package/is-property

## 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

- 1.0.2 (latest) — 2014-12-25
- 1.0.1 — 2014-12-25
- 1.0.0 — 2014-07-30
- 0.0.0 — 2013-07-18

## README

is-property
===========
Tests if a property of a JavaScript object can be accessed using the dot (.) notation or if it must be enclosed in brackets, (ie use x[" ... "])

Example
-------

```javascript
var isProperty = require("is-property")

console.log(isProperty("foo"))  //Prints true
console.log(isProperty("0"))    //Prints false
```

Install
-------

    npm install is-property
    
### `require("is-property")(str)`
Checks if str is a property

* `str` is a string which we will test if it is a property or not

**Returns** true or false depending if str is a property

## Credits
(c) 2013 Mikola Lysenko. MIT License

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