New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

amethyste-api

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amethyste-api

Module non-officiel de l'api Améthyste

latest
Source
npmnpm
Version
1.1.6
Version published
Maintainers
2
Created
Source

NPM version NPM downloads

npm installnfo

Description

Module officiel pour l'api du bot Améthyste

Utilisation

Documentation officielle : https://docs.api.amethyste.moe/

Installation

npm i amethyste-api

Endpoint

  • url = Image url
  • pixelize (entre 1 et 50, default: 8)
  • posterize (entre 1 et 100, defaut : 5 )
  • blur (entre 1 et 30, defaut : 5)
NomParams
circleurl
rejectedurl
approvedurl
glitchurl
distorturl
sepiaurl
contrasturl
greyscaleurl
inverturl
pixelizeurl, pixelize
blururl, blur
posterizeurl, posterize
beautifulurl
afusion => avatar-fusionurl
wantedurl
3000yearsurl
ripurl
utatoourl
wastedurl
frameurl
moustacheurl
scaryurl

Utilisation

Connexion :

const ameClient = require("amethyste-api")
const ameApi = new ameClient("token")

Endpoint Generate :

ameApi.generate("endpoint", {
    "url" : "image url"
}).then(image => {
    console.log(image)
}).catch(err => {
    throw err;
});

Returns

<Buffer ... >

Endpoint Generate Exemple:

ameApi.generate("glitch", {
    "url" : "https://cdn.discordapp.com/avatars/450352584302002186/c0ff7e943ab89560503b8e99591ff888.png?size=2048"
}).then(image => {
    console.log(image)
}).catch(err => {
    throw err;
})

Returns

<Buffer ... >

Endpoint Image Exemple:

ameApi.image("wallpaper", {
    "nsfw" : "false"
}).then(image => {
    console.log(image)
}).catch(err => {
    throw err;
});

Returns

{
  "status": 200,
  "url": "https://cdn.amethyste.moe/wallpaper/14ebdfb3f9a9e4025b54ab759f1ad9e60bd0.jpg"
}

Keywords

amethyste

FAQs

Package last updated on 08 May 2023

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