# ucshare

> 触发手机UC、QQ浏览器的原生的微信分享功能

Latest version **1.0.2** (published 2016-04-18) · MIT license · 0 weekly downloads

## Install

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

## 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.2 |
| Published | 2016-04-18 |
| First published | 2016-04-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 70 |
| Author | angusfu1126@qq.com |
| Maintainers | yywl |
| Keywords | UC, QQ, 移动浏览器, 微信分享, 朋友圈 |

## Links

- npm: https://www.npmjs.com/package/ucshare
- Repository: https://github.com/AngusFu/mobileShare
- Issues: https://github.com/AngusFu/mobileShare/issues
- npm.io page: https://npm.io/package/ucshare

## Alternatives

- [@fortawesome/react-fontawesome](https://npm.io/package/@fortawesome/react-fontawesome.md) — 2.2M weekly downloads
- [roboto-fontface](https://npm.io/package/roboto-fontface.md) — 196.0K weekly downloads
- [@react-native-vector-icons/common](https://npm.io/package/@react-native-vector-icons/common.md) — 150.4K weekly downloads
- [stockfish](https://npm.io/package/stockfish.md) — 27.0K weekly downloads
- [@procore/core-icons](https://npm.io/package/@procore/core-icons.md) — 4.6K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2016-04-18
- 1.0.1 — 2016-04-18
- 0.0.2 — 2016-04-18

## README

# mobileShare

## 触发手机UC、QQ浏览器的原生的微信分享功能

[![npm](https://img.shields.io/npm/v/ucshare.svg?style=flat-square)](https://www.npmjs.com/package/ucshare)
[![npm](https://img.shields.io/npm/dt/ucshare.svg?style=flat-square)](https://www.npmjs.com/package/ucshare)
 

## 说明

* 此插件主要作用是在UC和QQ两个手机浏览器上面触发微信分享到朋友圈或发送给朋友的功能
* 代码主要参考：http://mjs.sinaimg.cn/wap/module/share/201501261608/js/addShare.js
* 此外，JefferyWang的项目对我也有一定启示：https://github.com/JefferyWang/nativeShare.js

## 安装

```
npm install --save ucshare
```

## DEMO

```javascript

var mShare = require('mshare');

/**
 * @param  {Object} config 配置对象  参数见示例
 *     var config = {
 *          title : 'Lorem ipsum dolor sit.'
 *        , url   : 'http://m.ly.com'
 *        , desc  : 'Lorem ipsum dolor sit.'
 *        , img   : 'http://img1.40017.cn/cn/s/c/2015/loading.gif'
 *        , type  : type // 1 ==> 朋友圈  2 ==> 朋友  0 ==> 直接弹出原生
 *     }
 */
var mshare = new mShare({
      title : 'Lorem ipsum dolor sit.'
    , url   : 'http://m.ly.com'
    , desc  : 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat inventore minima voluptates.'
    , img   : 'http://placehold.it/150x150'
});

$('button').click(function () {
    // 1 ==> 朋友圈  2 ==> 朋友  0 ==> 直接弹出原生
    mshare.init(+$(this).data('mshare'));
});


```

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