vk-share
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

vk-share

Provides a simple function that opens a new tab with a VK (VKontakte) social media sharing modal.

Usage

The function accepts an object with url, title, and image passed as strings. The url field is the only mandatory field. It safely opens a new tab with a VK sharing modal window when called.

import { shareVk } from "vk-share";

shareVk({
    url: "https://example.com",
    title: "Title ",
    image: "https://some-site/some-picture.jpg",
  });

Package Sidebar

Install

npm i vk-share

Weekly Downloads

12

Version

1.0.2

License

MIT

Unpacked Size

6.76 kB

Total Files

8

Last publish

Collaborators

  • arhonist