https://github.com/tableflip/share-my-url
create social sharing urls for yourself and other to share things with via urls
https://github.com/tableflip/share-my-url
Last synced: 9 months ago
JSON representation
create social sharing urls for yourself and other to share things with via urls
- Host: GitHub
- URL: https://github.com/tableflip/share-my-url
- Owner: tableflip
- License: mit
- Created: 2015-07-02T16:11:38.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-04-11T08:45:58.000Z (about 10 years ago)
- Last Synced: 2025-03-16T04:34:02.823Z (over 1 year ago)
- Language: JavaScript
- Size: 3.55 MB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Share my URL
get it like this
`npm install share-my-url`
then add it like this
```
var share = require('share-my-url')
share('facebook', 'https://github.com/tableflip/share-my-url')
// https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fgithub.com%2Ftableflip%2Fshare-my-url
```
Here are the supported networks

They take different options listed below
```
facebook {
t: 'some title'
}
pinterest {
media: 'some link to an image',
description: 'some description for your shareble thing'
}
twitter {
via: 'a twitter handle',
text: 'a tweet you want to share'
}
```
## Tests
Tests are in tape, and code is linted by standard.
```
npm test
```