Socket
Book a DemoInstallSign in
Socket

share-my-url

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

share-my-url

Generate share buttons for facebook, twitter, google+ and pinterest

latest
Source
npmnpm
Version
0.2.2
Version published
Maintainers
1
Created
Source

Share my URL

get it like this

npm install share-my-url

then add it like this

var share = require('share-my-url')

share('facebook', 'https://github.com/tableflip/share-my-url')

// https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fgithub.com%2Ftableflip%2Fshare-my-url

Here are the supported networks

facebook twitter pinterest google+

They take different options listed below

facebook {
  t: 'some title'
}

pinterest {
  media: 'some link to an image',
  description: 'some description for your shareble thing'
}

twitter {
  via: 'a twitter handle',
  text: 'a tweet you want to share'
}

Tests

Tests are in tape, and code is linted by standard.

npm test

Keywords

social

FAQs

Package last updated on 11 Apr 2016

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