dele

Social sharing links made easy

Usage no npm install needed!

<script type="module">
  import dele from 'https://cdn.skypack.dev/dele';
</script>

README

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>