# mind-controlled-x

> Mind controlled x

Latest version **1.0.2** (published 2019-11-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install mind-controlled-x
pnpm add mind-controlled-x
yarn add mind-controlled-x
bun add mind-controlled-x
```

## 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 | 2019-11-09 |
| First published | 2019-11-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 23.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Çağatay Çalı |
| Maintainers | cagataycali |

## Links

- npm: https://www.npmjs.com/package/mind-controlled-x
- npm.io page: https://npm.io/package/mind-controlled-x

## Dependencies (1)

- [ws](https://npm.io/package/ws.md) ^7.1.2

## Recent versions

- 1.0.2 (latest) — 2019-11-09
- 1.0.1 — 2019-11-09
- 1.0.0 — 2019-11-09

## README

Mind Controlled X
-----------

Your new mind controlled X projects start point.

Installation
-----------

```bash
npm install mind-controlled-x # or # yarn add mind-controlled-x
```

Usage
-----------

`index.js`

```javascript
// First usage. (Needs internet connection.)
const mind = require('mind-controlled-x')({
  license: 'free',
  clientId: 'xxxxxxxxxxxx',
  clientSecret: 'xxxxxxxxx',
  debit: 1,
}) // Copy auth token and headset ID and use below (Does not needs internet connection.)
// --------------- OR ---------------
const mind = require('mind-controlled-x')({
  headsetId: 'EPOCPLUS-xxxxxxxx',
  authToken: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
})

const streams = ['com', 'mot', 'fac'] // https://emotiv.github.io/cortex-docs/#subscriptions

mind.sub(streams, async event => {
  const data = JSON.parse(event)
  console.log(data)
})
```

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