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>

Dependents (0)

Package Sidebar

Install

npm i dele

Weekly Downloads

1

Version

1.1.4

License

MIT

Last publish

Collaborators

  • ecrmnn