{"id":24383438,"url":"https://github.com/firstandthird/social-share-button","last_synced_at":"2025-04-11T01:12:23.393Z","repository":{"id":18386959,"uuid":"84165023","full_name":"firstandthird/social-share-button","owner":"firstandthird","description":"Sharing buttons","archived":false,"fork":false,"pushed_at":"2025-02-21T17:20:28.000Z","size":1870,"stargazers_count":2,"open_issues_count":8,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-11T01:12:18.618Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/firstandthird.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-07T06:49:09.000Z","updated_at":"2025-02-21T17:20:33.000Z","dependencies_parsed_at":"2024-08-09T02:07:24.754Z","dependency_job_id":null,"html_url":"https://github.com/firstandthird/social-share-button","commit_stats":{"total_commits":20,"total_committers":6,"mean_commits":"3.3333333333333335","dds":0.55,"last_synced_commit":"3e29b1eb30d1104ce29791487c6454f5385244c2"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fsocial-share-button","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fsocial-share-button/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fsocial-share-button/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fsocial-share-button/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firstandthird","download_url":"https://codeload.github.com/firstandthird/social-share-button/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248322571,"owners_count":21084337,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-19T10:14:28.508Z","updated_at":"2025-04-11T01:12:23.378Z","avatar_url":"https://github.com/firstandthird.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Social Share Buttons\n\n![npm](https://img.shields.io/npm/v/social-share-button.svg?style=for-the-badge)\n![npm](https://img.shields.io/github/workflow/status/firstandthird/social-share-button/Lint?label=Lint\u0026style=for-the-badge)\n\nSocial sharing buttons for [Domodule](https://github.com/firstandthird/domodule).\n\n## Installation\n\n```sh\nnpm install social-share-button\n```\n\n_or_\n\n```sh\nyarn add social-share-button\n```\n\n## Usage\n\n### HTML\n\n```html\n\u003cbody\u003e\n  \u003ca data-module=\"SocialShareButton\"\n     data-module-text=\"No water in mars yet\"\n     data-module-tags=\"not,awesome\"\n     data-module-via=\"NASA\"\n     data-module-base-url=\"https://firstandthird.com/\"\n     data-module-net=\"twitter\"\u003eShare on Twitter custom all\u003c/a\u003e\n\u003c/body\u003e\n```\n\n### JavaScript\n\n```js\nimport 'social-share-button';\n```\n\nIt supports the following sharing methods:\n\n* Email: `email`\n* GPlus: `gplus`\n* LinkedIn: `linkedin`\n* Facebook: `facebook`\n* Twitter: `twitter`\n* Pinterest: `pinterest`\n* Reddit: `reddit`\n\nThey're controlled with the `data-module-net` option.\n\n## ShareUrl\n\n**All** of the networks have a way to set the sharing url which is controlled via the `data-module-base-url` attribute. Should `data-module-relative` appear on the element, the URL would be based on the current one.\n\n### Email Options\n\n| Option     | Default       | Description                                                 |\n|------------|---------------|--------------------------------------------------------|\n| `subject` | `document.title` | Email's subject. |\n| `body`    | `Check this out #url` | Note that `#url` will be replaced with `shareUrl` |\n\n### LinkedIn Options\n\n| Option     | Default       | Description                                                 |\n|------------|---------------|--------------------------------------------------------|\n| `text` | N/A | Linkedin's post text. |\n| `title` | N/A | Linkedin's post title. |\n\n### Twitter Options\n\n| Option     | Default       | Description                                                 |\n|------------|---------------|--------------------------------------------------------|\n| `text` | `\u003cmeta property=\"twi:text\" content=\"\"\u003e` content's value | Twitter's post text. |\n| `tags` | `\u003cmeta property=\"twi:hashtag\" content=\"\"\u003e` content's value | Hashtags |\n| `via` | `\u003cmeta property=\"twi:author\" content=\"\"\u003e` content's value | Twitter's author |\n\n### Facebook Options\n\nHave in mind that facebook needs [OG tags](https://developers.facebook.com/docs/sharing/webmasters/) for the post to be formatted correctly.\n\n| Option     | Default       | Description                                                 |\n|------------|---------------|--------------------------------------------------------|\n| `tag` | N/A | Post's tags. |\n| `text` | N/A | Post's text. Note that due to facebook limitation's this is seen as a byline rather than as text. |\n\n### Pinterest Options\n\n| Option     | Default       | Description                                                 |\n|------------|---------------|--------------------------------------------------------|\n| `title` | N/A | Pin title |\n| `media` | `\u003cmeta property=\"og:image\" content=\"\"\u003e` content's value | Pin image |\n\n### Reddit Options\n\n| Option     | Default       | Description                                                 |\n|------------|---------------|--------------------------------------------------------|\n| `title` | N/A | Reddit post title. |\n\n---\n\n\u003ca href=\"https://firstandthird.com\" target=\"_blank\" rel=\"noreferrer\"\u003e\u003cimg src=\"https://firstandthird.com/_static/ui/images/safari-pinned-tab-62813db097.svg\" height=\"32\" width=\"32\" align=\"right\"\u003e\u003c/a\u003e\n\n_A [First+Third](https://firstandthird.com) Project_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstandthird%2Fsocial-share-button","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirstandthird%2Fsocial-share-button","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstandthird%2Fsocial-share-button/lists"}