Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

dele

1.1.4 • Public • Published

dele

['deːlə], verb

Social sharing links made easy

Share via facebook(), twitter(), google(), linkedIn() or email()

Installation

Install using NPM

$ npm install dele --save-dev

Usage

Browserify example;

See also example/browserify/browserify.html

Javascript

// something.js
window.dele = require('dele');

HTML

// something.html
<a href="javascript:dele().facebook()">Share on Facebook</a>
<a onclick="dele().twitter()">Share on Twitter</a>

Custom URL and title

dele shares the current url and current title by default. If you wish to override this, simply use url() and title()

// something.html
<a onclick="dele().url('http://github.com/ecrmnn').title('@ecrmnn').linkedIn()">
    Share on LinkedIn
</a>

Install

npm i dele

DownloadsWeekly Downloads

2

Version

1.1.4

License

MIT

Last publish

Collaborators

  • avatar