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

d-share

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

d-share

Share buttons in Derby apps

latest
Source
npmnpm
Version
0.1.5
Version published
Maintainers
1
Created
Source

d-share

Share buttons in Derby apps.

Share your website on multiple third-party social networks.

Available Sharing Networks

  • Email
  • Facebook
  • Google+
  • Pinterest
  • Tumblr
  • Twitter
  • Reddit
  • LinkedIn
  • MySpace
  • Sina

Other Sharing Networks, for these we have not icons (Contributors welcome!!!)

  • Douban
  • Kaixin
  • Netease
  • Renren
  • Sohu

Usage Examples

First of make sure to install d-share through npm npm install d-share.

Including

app.use(require('d-share'));

In template

<!-- Facebook -->
<share service="facebook" url="http://derbyjs.com/" text="Expect more from MVC."/>

<!-- Pinterest -->
<share service="pinterest" url="http://derbyjs.com/" desc="Expect more from MVC." image="http://derbyjs.com/images/derby.png"/>

<!-- Small icon -->
<share service="facebook" url="http://derbyjs.com/" text="Expect more from MVC." icon-size="16"/>

<!-- Use your own button -->
<share service="facebook" url="http://derbyjs.com/" text="Expect more from MVC.">
    <button>Share on Facebook</button>
</share>

Component Attributes

AttributeDescriptionApplies To
serviceThe network to share to (please refer to the available networks; must be all lower case)All
urlThe URL you want to shareAll, except Netease
textThe title or text you want to enter when sharingEmail, Pinterest, Twitter, Reddit, LinkedIn, MySpace, Douban, Kaixin, Netease, Renren, Sina, Sohu
descThe description you want to enter when sharingEmail, MySpace
imageThe image you want to enter when sharingPinterest, Douban, Sina
icon-sizeIcon size, can be 16 or 32, defaults to 32optional

TODO

  • Store icons in another place (currently we use github).

Keywords

share

FAQs

Package last updated on 09 Aug 2014

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