Socket
Socket
Sign inDemoInstall

leoapi.xyz

Package Overview
Dependencies
2
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    leoapi.xyz

Use the Leo API with ease


Version published
Weekly downloads
10
decreased by-41.18%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Leo API Wrapper

This wrapper utilises leoapi

Support

If you want any support for this package head on over to our discord server

To use this wrapper you must type in the functions...

const API = require('leoapi.xyz')
const leo = new API()

//for image endpoints 
leo.image('<endpoint>', {
    '<param>': '<value>'
})

//for data endpoints 
leo.data('<endpoint>', {
    '<param>': '<value>'
}).then(data => console.log(data))

//for text endpoints 
leo.text('<endpoint>', {
    '<param>': '<value>'
}).then(data => console.log(data))

//for fun endpoints 
leo.fun('<endpoint>', {
    '<param>': '<value>'
}).then(data => console.log(data))

Examples

const API = require('leoapi.xyz')
const leo = new API()

//image commands
leo.image("delete", {
    image: "https://cdn.discordapp.com/avatars/538668078012039168/baeefb053a81c10dc2942a30a26f805d.png?size=256"
}).then((image) => {
    <Message || Interaction>.<Send || followUp>({ files: [image]})
})

//data commands
leo.data("npm", {
    package: "leoapi.xyz"
}).then((data) => {
    <Message || Interaction>.<Send || followUp>({ content: [data]})
})

Keywords

FAQs

Last updated on 13 Nov 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc