# object-count

> returns the size of an array or the number of properties of an object

Latest version **0.0.1** (published 2014-03-31) · 0 weekly downloads

## Install

```sh
npm install object-count
pnpm add object-count
yarn add object-count
bun add object-count
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2014-03-31 |
| First published | 2014-03-31 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Olivier Scherrer |
| Maintainers | podefr |
| Keywords | count, size, object, array |

## Links

- npm: https://www.npmjs.com/package/object-count
- Repository: git@github.com:cosmosio/object-count
- Homepage: https://github.com/cosmosio/object-count
- Issues: https://github.com/cosmosio/object-count/issues
- npm.io page: https://npm.io/package/object-count

## Recent versions

- 0.0.1 (latest) — 2014-03-31

## README

Object count
=============

Count the number of properties in an object, or return the number of items in an array. It doesn't look up in the prototype chain.

Installation
============

```bash
npm install object-count
```

How to use
==========

Require object-count:

```js
var count = require("object-count");
```

Use it with an object:

```js
var anObject = {
  "property1": "with",
  "property2": "some",
  "property3": "data"
};

count(anObject); // 3
```

It also works with an array:

```js
var anArray = ["with", "some", "data"];

count(anArray); // 3
```

LICENSE
=======

MIT

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