<commit_before>node-blink1
===========

A node.js library for the [blink(1)](http://www.kickstarter.com/projects/thingm/blink1-the-usb-rgb-led) by [ThingM](http://thingm.com)

Install
-------

    npm install node-blink1

Usage
-----

    var Blink1 = require('node-blink1');

Get list of blink(1) devices connected:

    Blink1.devices(); // returns array of serial numbers
    
Create blink(1) object without serial number, uses first device:

    var blink1 = new Blink1.Blink1();
    
Create blink(1) object with serial number, to get list of serial numbers use `Blink1.devices()`:

    var blink1 = new Blink1.Blink1(serialNumber);
    

Get version:
<commit_msg>- add link to issue #3 for windows users<commit_after>node-blink1
===========

A node.js library for the [blink(1)](http://www.kickstarter.com/projects/thingm/blink1-the-usb-rgb-led) by [ThingM](http://thingm.com)

Install
-------

    npm install node-blink1
    
    
(Windows users see [issue #3](https://github.com/sandeepmistry/node-blink1/issues/3))

Usage
-----

    var Blink1 = require('node-blink1');

Get list of blink(1) devices connected:

    Blink1.devices(); // returns array of serial numbers
    
Create blink(1) object without serial number, uses first device:

    var blink1 = new Blink1.Blink1();
    
Create blink(1) object with serial number, to get list of serial numbers use `Blink1.devices()`:

    var blink1 = new Blink1.Blink1(serialNumber);
    

Get version:

{'fraction_non_alphanumeric': 0.14256339958875944, 'fraction_numerical': 0.02604523646333105, 'mean_word_length': 3.3843843843843846, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2903909', 'n_tokens_mistral': 498, 'n_tokens_neox': 474, 'n_words': 137}