remarkable-node
Unofficial reMarkable api wrapper for node.js based on [these unofficial docs](https://github.com/splitbrain/ReMarkableAPI/wiki).
Last updated 10 months ago by kevlened .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install remarkable-node 
SYNC missed versions from official npm registry.

remarkable-node

Unofficial reMarkable api wrapper for node.js based on these unofficial docs.

Install

yarn add remarkable-node

Usage

import { Remarkable, ItemTypes } from 'remarkable-node';
// const { Remarkable, ItemTypes } = require('remarkable-node');

(async () => {
    const client = new Remarkable();

    // create a code at https://my.remarkable.com/connect/desktop
    const token = await client.register({code: 'created code'});

    // (optional) skip registration in the future with `new Remarkable({token})`
    console.log(token);

    // List items
    const items = await client.listItems();

    // property list: https://github.com/splitbrain/ReMarkableAPI/wiki/Storage
    for (const item of items) {
        if (item.Type === ItemTypes.CollectionType) {
            // Do something with the collection
        } else if (item.Type === ItemTypes.DocumentType) {
            // Do something with the document
        }
    }

    // Get an item
    const item = await client.getItem({id: 'some uuid'});

    // Delete an item
    await client.deleteItem({id: 'some uuid'});
})();

License

MIT

Current Tags

  • 0.0.2                                ...           latest (10 months ago)

1 Versions

  • 0.0.2                                ...           10 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |