New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

openbci-utilities

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openbci-utilities - npm Package Compare versions

Comparing version 0.2.7 to 0.3.0

CHANGELOG.md

25

package.json
{
"name": "openbci-utilities",
"version": "0.2.7",
"version": "0.3.0",
"description": "The official utility package of Node.js SDK for the OpenBCI Biosensor Boards.",
"main": "index.js",
"main": "dist/openbci-utilities.js",
"module": "src/index.js",
"scripts": {
"build": "webpack",
"start": "webpack-dev-server",
"prepublish": "npm run build",
"test": "npm run test-lint && npm run test-cov",

@@ -11,2 +15,5 @@ "test-lint": "semistandard | snazzy",

},
"files": [
"dist"
],
"keywords": [

@@ -23,2 +30,3 @@ "openbci",

"dependencies": {
"buffer": "^5.0.8",
"buffer-equal": "^1.0.0",

@@ -30,3 +38,2 @@ "clone": "^2.0.0",

"performance-now": "^2.1.0",
"safe-buffer": "^5.1.1",
"streamsearch": "^0.1.2"

@@ -38,2 +45,4 @@ },

"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"bluebird": "3.4.6",

@@ -51,3 +60,5 @@ "chai": "^4.0.0",

"sinon-chai": "^2.8.0",
"snazzy": "^7.0.0"
"snazzy": "^7.0.0",
"webpack": "^3.8.1",
"webpack-dev-server": "^2.9.3"
},

@@ -63,3 +74,3 @@ "repository": {

"engines": {
"node": ">=4"
"node": ">=6"
},

@@ -78,4 +89,8 @@ "semistandard": {

"should"
],
"ignore": [
"examples/browser",
"examples/node"
]
}
}

157

README.md

@@ -0,1 +1,10 @@

# OpenBCI JavaScript Utilities Library
<p align="center">
<img alt="banner" src="/images/node_icon2.png/" width="300">
</p>
<p align="center" href="">
Provide a stable javascript library for OpenBCI
</p>
[![Build Status](https://travis-ci.org/OpenBCI/OpenBCI_NodeJS_Utilities.svg?branch=master)](https://travis-ci.org/OpenBCI/OpenBCI_NodeJS_Utilities)

@@ -7,19 +16,135 @@ [![codecov](https://codecov.io/gh/OpenBCI/OpenBCI_NodeJS_Utilities/branch/master/graph/badge.svg)](https://codecov.io/gh/OpenBCI/OpenBCI_NodeJS_Utilities)

# OpenBCI Node.js Utilities
## Welcome!
A Node.js module for OpenBCI ~ written with love by [Push The World!](http://www.pushtheworldllc.com)
First and foremost, Welcome! :tada: Willkommen! :confetti_ball: Bienvenue! :balloon::balloon::balloon:
Push The World is actively developing and maintaining this module.
Thank you for visiting the OpenBCI JavaScript Utilities Library repository.
The purpose of this module is to supply a common node core that allows the reuse of mission critical components, such as sending commands or using a simulator.
This document (the README file) is a hub to give you some information about the project. Jump straight to one of the sections below, or just scroll down to find out more.
* [What are we doing? (And why?)](#what-are-we-doing)
* [Who are we?](#who-are-we)
* [What do we need?](#what-do-we-need)
* [How can you get involved?](#get-involved)
* [Get in touch](#contact-us)
* [Find out more](#find-out-more)
* [Understand the jargon](#glossary)
## What are we doing?
### The problem
* The first javascript libraries for OpenBCI was the [NodeJS Cyton SDK][link_nodejs], then the [NodeJS Ganglion SDK][link_nodejs_ganglion], then the [NodeJS for WiFi][link_nodejs_wifi], each with their own interfaces, serial, bluetooth, and wifi respectively.
* The ganglion's raw data is incredibly complex and must be decompressed and carefully parsed, in less words, it takes time to learn to parse this stream
* People want to use the [Ganglion][link_shop_ganglion] in the web browser
So, if even developers are interested in working with [OpenBCI][link_shop_openbci] devices with javascript, they have a huge burden to overcome before they can parse the data.
### The solution
The OpenBCI JavaScript Utilities Library will:
* Provide a nice cozy home to all the horror of parsing raw binary byte streams
* Use automated testing extensively and don't let untested code be released!
* Work in the browser and NodeJS!
* Be able to parse ganglion and cyton data.
* Store a constants file so every module agrees on names of keys and such
Using a single unified JavaScript library solves the challenges of parsing raw brainwave data. Our main goal is to ***provide a stable javascript library for OpenBCI***
## Who are we?
The main code writer of the OpenBCI JavaScript Utilities Library is [AJ Keller][link_aj_keller]. This code all started in the OpenBCI NodeJS SDK for Cyton. Many people contributed, if not directly, but by advice or instructions drawn on a coffee table to calculate impedance. A lot of people who use this library never have any idea about it! Every user of the OpenBCI GUI is heavily dependent on this code base for all data acquisition from the Cyton, Ganglion and WiFi shield!
## What do we need?
**You**! In whatever way you can help.
We need expertise in programming, user experience, software sustainability, documentation and technical writing and project management.
We'd love your feedback along the way.
Our primary goal is to provide a stable javascript library for OpenBCI, and we're excited to support the professional development of any and all of our contributors. If you're looking to learn to code, try out working collaboratively, or translate you skills to the digital domain, we're here to help.
## Get involved
If you think you can help in any of the areas listed above (and we bet you can) or in any of the many areas that we haven't yet thought of (and here we're *sure* you can) then please check out our [contributors' guidelines](CONTRIBUTING.md) and our [roadmap](ROADMAP.md).
Please note that it's very important to us that we maintain a positive and supportive environment for everyone who wants to participate. When you join us we ask that you follow our [code of conduct](CODE_OF_CONDUCT.md) in all interactions both on and offline.
## Contact us
If you want to report a problem or suggest an enhancement we'd love for you to [open an issue](../../issues) at this github repository because then we can get right on it. But you can also contact [AJ][link_aj_keller] by email (pushtheworldllc AT gmail DOT com) or on [twitter](https://twitter.com/aj-ptw).
## Find out more
You might be interested in:
* What is [OpenBCI][link_openbci]?
And of course, you'll want to know our:
* [Contributors' guidelines](CONTRIBUTING.md)
* [Roadmap](ROADMAP.md)
## Thank you
Thank you so much (Danke schön! Merci beaucoup!) for visiting the project and we do hope that you'll join us on this amazing journey to make programming with OpenBCI fun and easy.
# Documentation
### Table of Contents:
---
1. [Developing](#developing)
2. [Testing](#developing-testing)
3. [Contribute](#contribute)
4. [License](#license)
1. [Installation](#install)
2. [Usage](#usage)
2. [Developing](#developing)
3. [Testing](#developing-testing)
4. [Contribute](#contribute)
5. [License](#license)
## <a name="install"></a> Installation:
```
npm install openbci-utilities
```
## <a name="usage"></a> Usage:
### In NodeJS
```node
const { constants, debug, utilities } = require('openbci-utilities');
console.log('OpenBCIUtilities', OpenBCIUtilities);
```
### In Web Browser
**index.html**
```html
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>OpenBCI Utilities</title>
</head>
<body>
<pre>See data in the console</pre>
<script src="../../dist/openbci-utilities.var.js"></script>
<script src="./index.js"></script>
</body>
</html>
```
**index.js**
```javascript
console.log(OpenBCIUtilities);
```
## <a name="developing"></a> Developing:

@@ -53,1 +178,17 @@ ### <a name="developing-running"></a> Running:

MIT
[link_aj_keller]: https://github.com/aj-ptw
[link_shop_wifi_shield]: https://shop.openbci.com/collections/frontpage/products/wifi-shield?variant=44534009550
[link_shop_ganglion]: https://shop.openbci.com/collections/frontpage/products/pre-order-ganglion-board
[link_shop_cyton]: https://shop.openbci.com/collections/frontpage/products/cyton-biosensing-board-8-channel
[link_shop_cyton_daisy]: https://shop.openbci.com/collections/frontpage/products/cyton-daisy-biosensing-boards-16-channel
[link_nodejs]: https://github.com/OpenBCI/OpenBCI_NodeJS
[link_nodejs_cyton]: https://github.com/OpenBCI/OpenBCI_NodeJS_Cyton
[link_nodejs_ganglion]: https://github.com/OpenBCI/OpenBCI_NodeJS_Ganglion
[link_nodejs_wifi]: https://github.com/OpenBCI/OpenBCI_NodeJS_Wifi
[link_ptw]: https://www.pushtheworldllc.com
[link_openbci]: http://www.openbci.com
[link_mozwow]: http://mozillascience.github.io/working-open-workshop/index.html
[link_wifi_get_streaming]: examples/getStreaming/getStreaming.js
[link_openleaderscohort]: https://medium.com/@MozOpenLeaders
[link_mozsci]: https://science.mozilla.org
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc