npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

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)

install

npm i lngzl

Downloadsweekly downloads

2

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability