
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@frontity/share
Advanced tools
Share utilities for the :fast_forward: Frontity platform.
Install @frontity/share using npm:
npm install @frontity/share
Then, import and use it in your mobx-state-tree store:
import { types } from 'mobx-state-tree';
import Share from '@frontity/share';
const myStore = types.model('MyStore')
.props({
share: types.optional(Share, {}),
})
.create({});
...
await myStore.share.facebook.requestCount({ type: 'post', id: 60 });
// Returns the share count of the item with type 'post' and id '60'.
myStore.share.facebook.count({ type: 'post', id: 60 });
// Returns the url for sharing the link of the item with type 'post' and id '60'.
myStore.share.facebook.url({ type: 'post', id: 60 });
share.networks - Returns the list of all supported networks.Permitted values for network are all, facebook, googlePlus and pinterest.
share[network].count({ type, id })share[network].requestCount({ type, id })share.facebook.url({ type, id, quote, hashtag })share.googlePlus.url({ type, id })share.linkedin.url({ type, id, title, summary })share.twitter.url({ type, id, text, via, hashtags })share.whatsapp.url({ type, id, text })share.telegram.url({ type, id, text })share.email.url({ type, id, subject, body })share.pinterest.url({ type, id, media, description })Thank you for thinking about contributing to a Frontity project!
Please take a look at this repo to know how to do so.
FAQs
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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.