Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kytra-api

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kytra-api

An Anime Wrapper API that helps how to get random images!

  • 1.1.4
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

Kytra Logo


NPM version
NPM downloads
Discord

About:

An Anime Wrapper API that helps how to get random images!

Basic:

const Kytra = require('kytra-api')
const kytra_gif = new Kytra()
async function getIMG(){
    let { image } = await kytra_gif.sfw.hug()
    console.log(image)
}
getIMG()
//Want NSFW? Example:
getNSFWImg()
async function getNSFWImg(){
    let { image } = await kytra_gif.nsfw.hentai()
    console.log(image)
}

Download Method:

const Kytra = require('kytra-api')
const kytra_gifs = new Kytra() 

let urlimage = 'https://example.com/file.jpg';
kytra_gifs.download(urlimage, path, 'hug.jpg')
console.log('Image downloaded successfully')

Discord Bot Method:

//Ejemplo geimer
const Discord = require('discord.js');
const client = new Discord.Client()

//cosas necesarias para sacar los gifs ;)
const Kytra = require('kytra-api')
const kytra_gifs = new Kytra() 

client.on('message', (message) => {
    if (message.content.startsWith('hug')){
        kytra_gifs.sfw.hug().then(response => {
        const embed = new Discord.MessageEmbed()
        .setDescription("Mairon se ha abrazado a si mismo")
        .setImage(response.image)
            message.channel.send(embed)
        }) 
    }
})

Support Server

  • Join Here

Developers

Keywords

FAQs

Package last updated on 11 May 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc