Package Exports
- nekobot-api
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nekobot-api) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
nekobot-api 
NekoBot API wrapper for Node.js
Installing
# npm
npm i nekobot-api
# yarn
yarn add nekobot-apiExample Usage
const { NekoBot } = require("nekobot-api");
const api = new NekoBot();
// imagegen endpoint
(async () => {
const image = await api.generate("magik", { image: "image url" });
console.log(image);
})();
// image endpoint
(async () => {
const image = await api.get("food");
console.log(image);
})();