Socket
Socket
Sign inDemoInstall

nekobot-api

Package Overview
Dependencies
0
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nekobot-api

NekoBot API wrapper for Node.js


Version published
Weekly downloads
40
increased by42.86%
Maintainers
1
Install size
18.3 kB
Created
Weekly downloads
 

Changelog

Source

2.1.0 (2021-02-01)

Features

  • add new types (#150) (15c2ff3)

Bug Fixes

  • Error: use body.message instead of http status for error message (b09a125)
  • uri isn't encoded (e2f78ee)

Readme

Source

nekobot-api npm

NekoBot API wrapper for Node.js

Installing

# npm
npm i nekobot-api

# yarn
yarn add nekobot-api

Example 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);
})();

Documentation

Keywords

FAQs

Last updated on 01 Feb 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc