Socket
Socket
Sign inDemoInstall

dele

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dele

Social sharing links made easy


Version published
Weekly downloads
5
increased by150%
Maintainers
1
Install size
8.67 kB
Created
Weekly downloads
 

Readme

Source

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>

Keywords

FAQs

Last updated on 16 Aug 2015

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc