🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@azuro-protocol/nft-image-generator

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azuro-protocol/nft-image-generator

```typescript type Team = { img: string name: string }

Source
npmnpm
Version
1.0.5
Version published
Weekly downloads
1
-99.58%
Maintainers
2
Weekly downloads
 
Created
Source

Passed object type

type Team = {
  img: string
  name: string
}

type GeneratePng = {
  type: 'match' | 'claim' | 'claimed'
  sport: string
  league: string
  team1: Team
  team2: Team
  date: string
  betAmount: string
  outcome: string
  betOdds: string
  currentOdds: string
}

Usage

import {generatePng} from '@azuro-protocol/nft-image-generator';

generatePng({
  type: 'match',
  sport: 'soccer',
  league: 'Leinster Senior League Senior Division',
  team1: {
    img: 'https://content.bookieratings.net/images/fq/tx/fqtxnf_20181001112329_100x100.png',
    name: 'Nizhny Novgorod'
  },
  team2: {
    img: 'https://content.bookieratings.net/images/fq/tx/fqtxnf_20181001112329_100x100.png',
    name: 'Lokomotiv Moscow'
  },
  date: '21.03.2022 8:00 UTC',
  betAmount: '100 USDC',
  outcome: 'Total Under(2.5)',
  betOdds: '2.88',
  currentOdds: '1.88'
}).then(buffer => {
  console.log(buffer);
})

FAQs

Package last updated on 07 Apr 2022

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