# motion-controller-emulator

> A motion controller emulator

Latest version **0.1.4** (published 2017-09-27) · Apache 2.0 license · 0 weekly downloads

## Install

```sh
npm install motion-controller-emulator
pnpm add motion-controller-emulator
yarn add motion-controller-emulator
bun add motion-controller-emulator
```

## 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.1.4 |
| Published | 2017-09-27 |
| First published | 2017-03-21 |
| Weekly downloads | 0 |
| License | Apache 2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | matthova |

## Links

- npm: https://www.npmjs.com/package/motion-controller-emulator
- npm.io page: https://npm.io/package/motion-controller-emulator

## Dependencies (8)

- [lodash](https://npm.io/package/lodash.md) ^4.17.2
- [bluebird](https://npm.io/package/bluebird.md) ^3.4.6
- [babel-cli](https://npm.io/package/babel-cli.md) ^6.26.0
- [deep-equal](https://npm.io/package/deep-equal.md) ^1.0.1
- [fs-promise](https://npm.io/package/fs-promise.md) ^1.0.0
- [line-by-line](https://npm.io/package/line-by-line.md) ^0.1.5
- [babel-preset-es2015](https://npm.io/package/babel-preset-es2015.md) ^6.24.1
- [gcode-json-converter](https://npm.io/package/gcode-json-converter.md) 1.2.1

## Recent versions

- 0.1.4 (latest) — 2017-09-27
- 0.1.3 — 2017-09-27
- 0.1.2 — 2017-03-29
- 0.1.0 — 2017-03-21
- 0.0.3 — 2017-03-21
- 0.0.2 — 2017-03-21
- 0.0.1 — 2017-03-21

## README

### Motion Controller Emulator ![motion controller emulator build status](https://travis-ci.org/Autodesk/motion-controller-emulator.svg?branch=master)

The purpose of this module is to allow for proper testing of code that utilizes gcode-based motion control hardware. We're specifically focused on emulating Marlin firmware, however this software's purpose can be expanded more generally as well.  


### Contributing
Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for [contributions](./CONTRIBUTING.md).


``` js
const MCE = require('motion-controller-emulator');

async function example() {
  // Create a new MCE instance
  const bot = new MCE();

  // Open the connection
  await bot.open()
  
  const positionReply = await bot.sendGcode('M114');
  // Position Reply is
  // ok X:0.00 Y:0.00 Z:0.00 E:0.00 Count X:0.00 Y:0.00 Z:0.00 E:0.00 
}

example();
```

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