1.5.5 • Published 4 years ago

node-zhycorp v1.5.5

Weekly downloads
909
License
AGPL-3.0
Repository
github
Last release
4 years ago

Table of contents

About

A simple API wrapper for Zhycorp Nation Bot List, and written in TypeScript

Installation

$ yarn add node-zhycorp

or with NPM

$ npm install node-zhycorp

Usage

  • JavaScript:
const { ZhycorpWrapper } = require("node-zhycorp");
const Zhycorp = new ZhycorpWrapper();

// Async/Await
(async function () {
    const result = await Zhycorp.getBot("bot id");
    console.log(result);
});

// Then
Zhycorp.getBot("bot id").then(console.log).catch(console.error);
  • ES6:
import { ZhycorpWrapper } from "node-zhycorp";

const Zhycorp = new ZhycorpWrapper();

// Async/Await
(async function () {
    const result = await Zhycorp.getBot("bot id");
    console.log(result);
});

// Then
Zhycorp.getBot("bot id").then(console.log).catch(console.error);

Click here for more example.

Contributing

Before creating an issue, please ensure that it hasn't already been reported/suggested, See the contribution guide if you'd like to submit a PR.

Links

1.5.5

4 years ago

1.5.0

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago