1.0.3 • Published 6 years ago

share_ewmimg v1.0.3

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

集字用户二维码生成器

说明

一次生成用户分享小程序二维码图

安装

$ npm install share_ewmimg

用法

可以在 test/test.js 看到用法,也可以直接到test目录运行查看效果。

var createImg = require('share_ewmimg');
var ewm = 'ewm.jpg'; 
var head = 'head.jpg';
createImg(ewm, head, '诗仙李白', 5, 1123, 'new.png');

[Kibana]

参数解释

createImg(ewm, head, userName, bearNum, money, img_path, tmpPath)
  • ewm: 用户的小程序分享二维码文件地址(支持在线 http://|https:// 地址或本地路径)
  • head: 需要展示的用户头像文件地址(支持在线 http://|https:// 地址或本地路径)
  • userName: 分享图片上的用户名
  • bearNum: 用户已经集齐的熊的数量
  • money: 可以分到的钱数
  • img_path: 生成的图片放置的位置
  • tmpPath: 项目生成中产生的临时文件放置路径 (default: '/tmp')
1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago