# electroknit

> Javascript implementation of knitic for the electroknit

Latest version **0.0.3** (published 2016-01-24) · BSD license · 0 weekly downloads

## Install

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

Provides the command `electroknit`.

## 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.3 |
| Published | 2016-01-24 |
| First published | 2015-12-12 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Kelly Korevec |
| Maintainers | kelly |

## Links

- npm: https://www.npmjs.com/package/electroknit
- Repository: https://github.com/kelly/electroknit
- Homepage: https://github.com/kelly/electroknit#readme
- Issues: https://github.com/kelly/electroknit/issues
- npm.io page: https://npm.io/package/electroknit

## Dependencies (7)

- [jimp](https://npm.io/package/jimp.md) 0.2.21
- [chalk](https://npm.io/package/chalk.md) 1.1.1
- [pngparse](https://npm.io/package/pngparse.md) 2.0.1
- [commander](https://npm.io/package/commander.md) 2.9.0
- [babel-core](https://npm.io/package/babel-core.md) 6.3.17
- [serialport](https://npm.io/package/serialport.md) 2.0.2
- [underscore](https://npm.io/package/underscore.md) 1.8.3

## Recent versions

- 0.0.3 (latest) — 2016-01-24
- 0.0.2 — 2016-01-11
- 0.0.1 — 2015-12-12

## README

# Electroknit

A javascript library for knitting machines. Currently works with [knitic](http://www.knitic.com) boards. Future plans to support OpenKnit and other platforms. 

## Install

````bash
$ npm install electroknit -g
````

## Usage

```
Usage: electroknit [options]

Options:

  -h, --help          output usage information
  -i, --image <path>  
  -p, --port <path>   arduino usb path
  -o, --offset <n>    offset from right
  -d, --dither        enable dither image
  -r, --repeat        repeat the pattern (not supported currently)
```

## Examples

```bash
$ electroknit -i 'test.jpg' -o 100 -d 
````

```javascript 
const Electroknit = require('electroknit');

let machine = new Electroknit.Machine(); // will auto-detect device
let pattern = new Electroknit.Pattern('test.jpg');

machine.on('ready', function() {

  machine.start(pattern);

  machine.on('update:sensors', function(data) {
    console.log(data);
  });
});

````

## App

I've built an Electron app to use with this module that makes it easy to visualize your knitting process. (Coming Soon!)

- [Github](https://github.com/kelly/electroknit-app)
- [OSX Binary](https://github.com/kelly/electroknit-app/raw/master/binary/Electroknit-darwin-x64.zip)

![Electroknit App](http://i.imgur.com/9AxJI3u.png)

## Questions?

http://www.twitter.com/korevec

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