1.0.3 • Published 2 years ago
comshare v1.0.3
ComShare
A simple share plug-in, share free just by using function command.
Note
This plugin just effect in window (browser)
Installation
npm install comshare --save
Usage
- With npm
For example you want share this url http://example.com, and the share title is THIS IS TITLE, content is THIS IS DESCRIPTION, picture path is http://picture.png.
Just use:
const ComShare = require('comshare')
let exampleShare = new ComShare({
url: 'http://example.com',
title: 'THIS IS TITLE',
content: 'THIS IS DESCRIPTION',
pic: 'http://picture.png'
})
// now, you can call the function to share
exampleShare.twitter()Share lists
.twitter()twitter.facebook()facebook.linkedin()LinkedIn.weixin()weixin.qq()qq.qzone()qq zone.weibo()weibo.tqq()tqq.renren()renren.douban()douban