# blackfynn-csv-exporter

> View Timeseries data stored on Blackfynn and export it to csv for OpenCOR

Latest version **1.1.44** (published 2019-07-23) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install blackfynn-csv-exporter
pnpm add blackfynn-csv-exporter
yarn add blackfynn-csv-exporter
bun add blackfynn-csv-exporter
```

## 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.1.44 |
| Published | 2019-07-23 |
| First published | 2019-04-03 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 3.1 MB |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jesse Khorasanee |
| Maintainers | tehsurfer |
| Keywords | OpenCOR, Blackfynn, data, export |

## Links

- npm: https://www.npmjs.com/package/blackfynn-csv-exporter
- Repository: https://github.com/tehsurfer/blackfynn-csv-exporter
- Issues: https://github.com/tehsurfer/blackfynn-csv-exporter/issues
- npm.io page: https://npm.io/package/blackfynn-csv-exporter

## Dependencies (5)

- [dat.gui](https://npm.io/package/dat.gui.md) ^0.7.6
- [papaparse](https://npm.io/package/papaparse.md) ^4.6.3
- [plotly.js](https://npm.io/package/plotly.js.md) ^1.48.3
- [choices.js](https://npm.io/package/choices.js.md) ^7.0.0
- [broadcast-channel](https://npm.io/package/broadcast-channel.md) ^2.1.12

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 1.1.44 (latest) — 2019-07-23
- 1.1.43 — 2019-07-23
- 1.1.42 — 2019-07-23
- 1.1.40 — 2019-07-22
- 1.1.39 — 2019-07-22
- 1.1.38 — 2019-07-22
- 1.1.37 — 2019-07-22
- 1.1.36 — 2019-07-22
- 1.1.35 — 2019-07-21
- 1.1.33 — 2019-07-21
- 1.1.30 — 2019-07-17
- 1.1.29 — 2019-07-17
- 1.1.28 — 2019-07-17
- 1.1.27 — 2019-07-17
- 1.1.26 — 2019-07-16
- … 39 more at https://npm.io/package/blackfynn-csv-exporter/versions

## README

Tehsurfer/blackfynn-csv-exporter
[![Netlify Status](https://api.netlify.com/api/v1/badges/75636c30-c9c2-41d4-8499-ee2826664aac/deploy-status)](https://app.netlify.com/sites/bf-export/deploys)
======
A Web viewer for viewing and exporting data from Blackfynn to CSV format for OpenCOR

View the current online version at:
https://blackfynnpythonlink.ml/blackfynn-csv-exporter/

Devloper Installation
------
1. `git clone https://github.com/Tehsurfer/blackfynn-csv-exporter.git`
2. Install [Node.js](https://nodejs.org/en/) if you do not have it (check using `npm -v`)
3. Navigate to the /blackfynn-csv-export directory and: 
```
npm install
npm run build
```
4. Open index.html in Firefox 

    OR
    
    Use `python -m http.server`
    
    Go to http://0.0.0.0:8000/index.html with Chrome
    
Using the app and External API's
-------
```javascript
// Initialises app.
var blackfynnManger = new BlackfynnManager()
blackfynnManger.initialiseBlackfynnPanel()


//Initialises app on document load.
var blackfynnManger = new BlackfynnManager()
document.addEventListener("DOMContentLoaded", function(event) { 
  blackfynnManger.initialiseBlackfynnPanel()
});

// Send data to app before or after login
var blackfynnManger = new BlackfynnManager()
blackfynnManager.insert('N:package:51ae7443-0e8e-40ac-84bc-a1fcceb9d867','EEG FZ-REF')
blackfynnManger.initialiseBlackfynnPanel()
blacfynnManager.login()
blackfynnManager.insert('Sample Time Series (EEG)','EEG C3-REF')

// serialise to JSON and load from JSON
var blackfynnManager = new blackfynn_panel.BlackfynnManager()
serialisedPanel = blackfynnManager.exportState()
console.log(serialisedPanel)
// "{"parentDiv":{},"selectedChannels":[],"csvURL":""}"
blackfynnManager.loadState(serialisedPanel)

// Load csv files and plot as single plot or subplot
bf = new blackfynn_panel.BlackfynnManager()
bf.openCSV('https://cors-anywhere.herokuapp.com/https://abi-test.ml/Cors_Test/Sample_1_18907001_channel_1.csv')
bf.plotAll() // Plot all csv channels and remover selector
bf.setSuplotsFlag(true) // Set to subplots for next plot
bf.plotAll() 
bf.openBroadcastChannel('my_name') // set broadcast channel name which returns serialised state on select.onchange
```

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