0.0.12 • Published 4 years ago

@drowzee/notion-mock v0.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Notion-js Mock Device

Really simple mock device for streaming raw brainwaves with notionjs.

const { Notion } = require("@drowzee/notion-mock")

const notion = new Notion()

// the login function doesn't do anything
await notion.login({
  email:"email",
  password:"whatever"
})

// optional: set your own data file
notion.sourceData = [ ... ] // format: neurosity json export

// subscribe to the raw brainwaves like you are used to
notion.brainwaves("raw").subscribe((raw) => {
  console.log('raw: ', raw);
});

Supply your own data:

const myRecording = require("./Obsidian chameleon.json")

// optional: set your own data file
notion.sourceData = myRecording // format: neurosity json export

TODO:

[] mock other parts of the api

[] not load the whole file into memory

0.0.12

4 years ago

0.0.10

4 years ago

0.0.11

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.5

4 years ago

0.0.6

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago

1.0.0

4 years ago