1.0.1 • Published 1 year ago

tracemoe-wrapper v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

trace-moe-wrapper

A Node.js wrapper for the trace.moe API.

Installation

npm install trace-moe-wrapper

Usage

const TraceMoeAPI = require('trace-moe-wrapper');

const traceMoe = new TraceMoeAPI('your-api-key-here');

(async () => {
    try {
        const result = await traceMoe.search('image-url-here');
        console.log(result);

        const userInfo = await traceMoe.me();
        console.log(userInfo);
    } catch (error) {
        console.error(error);
    }
})();

License

MIT

1.0.1

1 year ago

1.0.0

1 year ago