lngzl

1.0.0 • Public • Published

LNGZL { API }

This is a family of APIs that I made for numerous usage cases, for example the email validator will valiate email addresses for the file.coffee project.

For the full list, head over to lngzl.nl/api. I'll try my best to always update this library when I change things over at the API itself.

Usage

It currently supports almost all public APIs that I've made, excluding the ua one since it will always return the same useragent so I felt like it wasn't needed.

  • File.coffee statistics (filecoffee)
  • Email validator (mailcheck)
  • Minecraft server status (mcserver), ratelimited to 30 requests a minute.
  • Random one liner (oneliner)

First install the package by running npm i lngzl

Top Code

const lngzl = require('lngzl')

filecoffee

lngzl.filecoffee(r => {
    // Returns the file.coffee statistics, they update once a minute.
    console.log(r)
})

mailcheck

lngzl.mailcheck('hi@file.coffee', r => {
    // Verifies if the email address is valid according to the RFC 5322 Official Standard
    console.log(r)
})

mcserver

lngzl.mcserver('mc.hypixel.net', r => {
    // Will return success: false when you get ratelimited
    // You don't need to enter an port if your IP ends on 25565 as it will add it automatically.
    console.log(r)
})

oneliner

lngzl.oneliner(r => {
    // Returns a random one liner
    console.log(r)
})

Todo

  • [ ] Fix the MOTD for servers that run on bungeecord, for example mc.hypixel.net doesn't work properly (on the end of the API)

Readme

Keywords

Package Sidebar

Install

npm i lngzl

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

5.28 kB

Total Files

4

Last publish

Collaborators

  • lngzl