# share-my-url

> Generate share buttons for facebook, twitter, google+ and pinterest

Latest version **0.2.2** (published 2016-04-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install share-my-url
pnpm add share-my-url
yarn add share-my-url
bun add share-my-url
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2016-04-11 |
| First published | 2015-07-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Bernard Mordan |
| Maintainers | bmordan |
| Keywords | social, share, links, generator |

## Links

- npm: https://www.npmjs.com/package/share-my-url
- Repository: https://github.com/tableflip/share-my-url
- Homepage: https://github.com/tableflip/share-my-url#readme
- Issues: https://github.com/tableflip/share-my-url/issues
- npm.io page: https://npm.io/package/share-my-url

## Recent versions

- 0.2.2 (latest) — 2016-04-11
- 0.2.1 — 2015-07-06
- 0.2.0 — 2015-07-06
- 0.1.1 — 2015-07-03
- 0.1.0 — 2015-07-02

## 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

![facebook twitter pinterest google+](https://cloud.githubusercontent.com/assets/4499581/8482024/b8f568da-20de-11e5-8c24-2531e7c6ee4f.jpg)

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
```

---
_Source: https://npm.io/package/share-my-url · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
