Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 }

  • 2.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
14
increased by7.69%
Maintainers
2
Weekly downloads
 
Created
Source

Types Declaration

type Team = {
  img: string
  name: string
}

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

Usage

import generateImage, { Props } from '@azuro-protocol/nft-image-generator';

const props: Props = {
  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'
}

generateImage({
  output: './dist',
  props,
})

FAQs

Package last updated on 30 Nov 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

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