Socket
Book a DemoInstallSign in
Socket

@neoxr/quote-api

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neoxr/quote-api

Quote Generator by LyoSU

latest
Source
npmnpm
Version
1.1.1-dev
Version published
Weekly downloads
11
-42.11%
Maintainers
1
Weekly downloads
 
Created
Source

Quote Generator

This package comes from LyoSU - Quote API which I modified slightly.

Example

const quoteApi = require('@neoxr/quote-api')
const fs = require('node:fs')

const text = "Hello World"
const username = "Alι_Aryαɴ"
const avatar = "https://telegra.ph/file/59952c903fdfb10b752b3.jpg"

const json = {
  "type": "quote",
  "format": "png",
  "backgroundColor": "#FFFFFF",
  "width": 512,
  "height": 768,
  "scale": 2,
  "messages": [
    {
      "entities": [],
      "avatar": true,
      "from": {
        "id": 1,
        "name": username,
        "photo": {
          "url": avatar
        }
      },
      "text": text,
      "replyMessage": {}
    }
  ]
}

quoteApi(json).then(res => {
   const buffer = Buffer.from(res.image, 'base64')
      fs.writeFile('Quotly.png', buffer, (err) => {
      if (err) throw err
   })
})

FAQs

Package last updated on 28 Jul 2024

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