Small simple tool for sharing url, title, description and image to VK, Facebook, OK, G+, Twitter and Mail
npm install --save vanilla-sharing
or
yard add vanilla-sharing
- From build folder. Include file build/vanilla-sharing.js to your project
VanillaSharing.vk(options);
- From ES6 modules.
import { vk } from 'vanilla-sharing';
vk(options);
Share to vk.com.
vk({
url: string,
title: string,
description: string,
image: string,
isVkParse: boolean,
})
Share to facebook.com.
fb({
url: string,
title: string,
description: string,
image: string,
redirectUri: string,
fbAppId: string,
})
Share to Twitter.
tw({
url: string,
title: string,
})
Share to ok.ru.
ok({
url: string,
title: string,
})
Share to mail.ru.
mail({
url: string,
title: string,
description: string,
image: string,
})
Share to Telegram.
telegram({
url: string,
title: string,
})
Share to Viber. Share method from Viber Share Button.
viber({
url: string,
title: string,
})
Share to Whatsapp. Share method from kriskbx/whatsapp-sharing.
whatsapp({
url: string,
title: string,
})
Share to Google+.
gp({
url: string,
})