# beatmath

> module is a function that requires two arguments * @Number - measure length in beats * @Array - list of beats

Latest version **0.4.0** (published 2015-02-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install beatmath
pnpm add beatmath
yarn add beatmath
bun add beatmath
```

## 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.4.0 |
| Published | 2015-02-09 |
| First published | 2015-01-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | johnnyscript |

## Links

- npm: https://www.npmjs.com/package/beatmath
- npm.io page: https://npm.io/package/beatmath

## Recent versions

- 0.4.0 (latest) — 2015-02-09
- 0.3.0 — 2015-01-27
- 0.2.0 — 2015-01-27

## README

# beatmath

module is a function that requires two arguments
* @Number - measure length in beats
* @Array - list of beats 

It returns a function that takes one argument, a @Number, the beat count

```js
var beatmath = require('beatmath')

var beats = beatmath(4, [1,3])
// this will return a function 
// which will return true on the 1st and 3rd
// zero indexed = false

beats(1) // true
beats(2) // false
beats(3) // true
beats(5) // true

```

```
npm install beatmath
```

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