1.0.2 • Published 4 years ago

zhycorp.js v1.0.2

Weekly downloads
5
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 zhycorp.js

or with NPM

$ npm install zhycorp.js

Usage

  • JavaScript:
const { ZhycorpWrapper } = require("zhycorp.js");
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 "zhycorp.js";

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);

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.0.2

4 years ago

1.0.1

4 years ago