# dpd-count

> Deployd plugin that makes it easy to count documents. Warning! This plugin adds an 'ON COUNT' event to all collections! Make sure to restrict access there!

Latest version **0.0.1** (published 2015-04-01) · Apache License Version 2.0 license · 0 weekly downloads

## Install

```sh
npm install dpd-count
pnpm add dpd-count
yarn add dpd-count
bun add dpd-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 | 2015-04-01 |
| First published | 2015-04-01 |
| Weekly downloads | 0 |
| License | Apache License Version 2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Johannes Noe |
| Maintainers | docnoe |
| Keywords | deployd, dpd, count |

## Links

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

## Recent versions

- 0.0.1 (latest) — 2015-04-01

## README

# dpd-count

Deployd plugin that makes it easy to count documents.

**Warning!** This plugin adds an 'ON COUNT' event to all collections! Make sure to restrict access there!

## Why

Deployd is built so that only 'root' can count documents. But sometimes it can be useful to count documents that match a query from frontend, too.

## Usage

```
dpd.mycollection.get({id: "count"}, function(res) {
    console.log(res) // res === {"count": 10200}
})
```

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