nothingapi
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

Nothing API Wrapper

JavaScript Wrapper for the Nothing API

Requirements

  • NodeJS 17.5.0 or higher

Features

  • ⬇️ Tiny: Only 24 TypeScript lines (Less than 8kb unzipped)
  • 📦 Dependency Free: Using only fetch(), which is built into NodeJS (since v17.5)
  • 🎖️ Free License: MIT licensed

Quick Start

This library only exports a single function as a default: getUser. You may name this import anything you wish.

ESM:

import getNothingUser from "nothingapi"

(async () => {
  const user = await getNothingUser("863298292804485141")
  console.log(user)
  /**
   * Object:
   * {
   *   userId: "863298292804485141"
   *   balance: 101
   * }
   */
})()

CJS:

const getNothingUser = require("nothingapi")

(async () => {
  const user = await getNothingUser("863298292804485141")
  console.log(user)
  /**
   * Object:
   * {
   *   userId: "863298292804485141"
   *   balance: 101
   * }
   */
})()

Readme

Keywords

Package Sidebar

Install

npm i nothingapi

Weekly Downloads

0

Version

0.0.6

License

MIT

Unpacked Size

4.39 kB

Total Files

5

Last publish

Collaborators

  • compositr