1.0.1 • Published 7 years ago

wechat-external-link v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

Wechat External Link

Introduction

wechat-external-link is a tool that makes you easy to quote pictures from Wechat official accounts.

Installation

You can add wechat-external-link to your project by:

npm install --save wechat-external-link

or

yarn add wechat-external-link

Usage

You can use CMD, AMD or ES6 Module to import the package. The package is programmed in ES6, so you may need a Babel.

Here is an example for ES6 Module.

<article class="article-from-wechat">
  <img src="http://mmbiz.qpic.cn/mmbiz_jpg/hK6krTdpF7sPEDddMEN1O1UPf2ke0mxwOa7r3kEzf1eU965mLCbZc4WW0JSZ9gqHUfnZSWQicHRWsdic9iao12HaQ/0">
  Here is an article example!
</article>
import WechatExternalLink from 'wechat-external-link';
windows.onload = () => {
  //Yes, it's a jQuery selector!
  WechatExternalLink('.article-from-wechat'); //Clarify the root element here.
}
1.0.1

7 years ago

1.0.0

7 years ago