# concept2

> HID library for communicating with Concept2 performance monitor modules.

Latest version **0.0.1** (published 2016-10-20) · ISC license · 0 weekly downloads

## Install

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

## 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 | 2016-10-20 |
| First published | 2016-10-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Michael J. Del Tito |
| Maintainers | mdeltito |
| Keywords | hid, csafe, rowing, pm2, pm3, pm4, pm5 |

## Links

- npm: https://www.npmjs.com/package/concept2
- Repository: https://github.com/mdeltito/node-concept2
- Homepage: https://github.com/mdeltito/node-concept2#readme
- Issues: https://github.com/mdeltito/node-concept2/issues
- npm.io page: https://npm.io/package/concept2

## Dependencies (3)

- [csafe](https://npm.io/package/csafe.md) *
- [lodash](https://npm.io/package/lodash.md) ^4.16.4
- [node-hid](https://npm.io/package/node-hid.md) ^0.5.1

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2016-10-20

## README

# node-concept2

[![Build Status](https://travis-ci.org/mdeltito/node-concept2.svg?branch=master)](https://travis-ci.org/mdeltito/node-concept2)
[![npm version](https://badge.fury.io/js/concept2.svg)](https://badge.fury.io/js/concept2)

HID library for communicating with Concept2 performance monitor modules.

# Description

This module provides a wrapper for [`node-hid`](https://github.com/node-hid/node-hid) for communicating with Concept2 performance monitors.
It depends on [`node-csafe`](https://github.com/mdeltito/node-csafe) in order to communicate using the CSAFE protocol.

# Installation

```sh
$ npm install --save concept2
```

# Example

```js
import Concept2 from concept2
import { Command } from csafe

// Connect to an available monitor (with vendor ID 6052)
const pm3 = new Concept2

// Listen for error a new-frame events.
pm3.on('error', (err) => {
  console.error(err)
})

pm3.on('frame', (frame) => {
  // Do something with the response!
  console.log(frame)
})

// Write a command to the device.
const getCadenceCmd = new Command('GetCadence')
pm3.write(getCadenceCmd)
```

# Testing

```sh
$ npm test
```

# License

The project is licensed under the MIT license.

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