# hshare

> This is a social sharing plugin that allows web developers to include social sharing buttons/links with just some basic configuration. Existing platforms such as bshare/baidushare/jiathis uses **HTTP** protocol to fetch resources which makes it very hard

Latest version **1.0.0** (published 2017-04-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install hshare
pnpm add hshare
yarn add hshare
bun add hshare
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-04-25 |
| First published | 2017-04-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+4 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 10 |
| Author | HeavenDuke AsherWang |
| Maintainers | heavenduke |
| Keywords | hshare, social, sharing |

## Links

- npm: https://www.npmjs.com/package/hshare
- Repository: https://github.com/HeavenDuke/hshare
- Homepage: https://github.com/HeavenDuke/hshare#readme
- Issues: https://github.com/HeavenDuke/hshare/issues
- npm.io page: https://npm.io/package/hshare

## Dependencies (1)

- [jquery](https://npm.io/package/jquery.md) ~2.2.0

## Recent versions

- 1.0.0 (latest) — 2017-04-25

## README

# hshare - a jQuery social sharing plugin

This is a social sharing plugin that allows web developers to include social sharing buttons/links with just some basic configuration. Existing platforms such as bshare/baidushare/jiathis uses **HTTP** protocol to fetch resources which makes it very hard to deploy such services on **HTTPS** pages due to security restriction. This is what triggers this project. Currently it still supports limited number of platform, but I believe that it will be better through time : )

## Demo

Here is a demo of the our plugin:

![demo picture](http://ohtikzqed.bkt.clouddn.com/QQ%E5%9B%BE%E7%89%8720170121223132.jpg)

Furthur demo can be found on [Codepen](http://codepen.io/collection/nxZWxJ/).

## Supported Platforms
[Platforms](https://heavenduke.github.io/hshare/docs/Supported%20platforms/)

## Install
**bower**
```plain
bower install --save hshare
```

**npm**
```plain
npm install --save hshare
```

**HTML**
```html
<link rel="stylesheet" href="hshare.min.css">
<script type="text/javascript" href="jquery.min.js"></script>
<script type="text/javascript" href="hshare.min.js"></script>
```

## Usage

First specify a container in your html files like this:
```html
<html>
    <head>
        <!-- something here -->
    </head>
    <body>
        <div id="container"></div>
        <!-- something here -->
    </body>
</html>
```

Then initialize the social sharing components in your JavaScript file like this:
```javascript
$("#container").hshare();
```

You can also specify options for hshare like this:

```javascript
$("#container").hshare({
	size: "large",
	copyLink: false,
	platforms: [{
		name: "wechat"
	}, {
		name: "qzone"
	}]
});
```

For further Documentation please refer to:

* [Documentation](https://heavenduke.github.io/hshare/docs/)
* [中文文档](https://heavenduke.github.io/hshare/docs_cn/)

## Contributors
* [HeavenDuke](https://github.com/HeavenDuke)
* [AsherWang](https://github.com/AsherWang)

## License
[MIT](https://opensource.org/licenses/MIT)

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