@drowzee/notion-mock
v0.0.12
Published
Downloads
15
Readme
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