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

twitter-card

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twitter-card

Simple module that appends the proper meta tags for your own custom twitter card.

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

Twitter Card

Simple module that appends the proper meta tags for your own custom twitter card

Install

npm install twitter-card --save-dev

Usage

var twitterCard = require('twitter-card.js');
twitterCard({
   "type" : "summary|summary-large|photo|image|gallery|player",
   "url"  : "https://www.evernote.com"
   "handle" : "@evernote",
   "creator": "@augburto",
   "title" : "Tweet Title",
   "description" : "Description included in tweet"
   "content" : {
     "gallery" : {
     "images" : ["https://www.image.com/1/"] // up to 4 images
    },
   "player"  : {
      "embed"  : "https://www.youtube.com/embed/xtG-JbiH-Gc",
      "image"  : "https://i.ytimg.com/vi/xtG-JbiH-Gc/mqdefault.jpg",
      "width"  :  350,
      "height" :  196
    },
});

Notes

  • Currently app is not supported but hoping to add this soon
  • Working on adding support to directly validate twitter-card
  • Hoping to remove jQuery as a dependency

Keywords

twitter

FAQs

Package last updated on 16 Jan 2015

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