You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

mightyshare

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

mightyshare

Generate social share images with Node.js using MightyShare.io API.

1.0.3
latest
Source
npmnpm
Version published
Weekly downloads
5
-16.67%
Maintainers
1
Weekly downloads
 
Created
Source

MightyShare.io Social Share Image API

Generate social share images for your blog posts, articles, and more with MightyShare. Our easy to use API allows you to generate images with text, colors, and images. Perfect for setting your open graph tags on your website.

Sign up for an API key and secret at MightyShare.io.

Installation

npm install mightyshare

Node.js Usage Example

import MightyShare from 'mightyshare';

// API key from MightyShare.io
const mightyshare = MightyShare(API_KEY);

const options = {
  height: 630,
  width: 1200,
  template: 'standard-1',
  template_values: [
    {
      "name": "primary_color",
      "color": "#C18651"
    },
    {
      "name": "title",
      "text": "8 Stunning Beaches to Visit this Summer"
    },
    {
      "name": "background",
      "image_url": "https://images.unsplash.com/photo-1652953552047-d8fe57042a3a?crop=entropy&cs=tinysrgb&fm=jpg&ixlib=rb-1.2.1&q=80&raw_url=true&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1800"
    },
    {
      "name": "logo",
      "image_url": "https://mightyshare.io/wp-content/uploads/2022/05/your-logo-mightyshare-1.png"
    }
  ]
}

const imageUrl = mightyshare.generateUrl(options);
console.log(imageUrl);

Keywords

mightyshare

FAQs

Package last updated on 27 Jan 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.