@jswork/next-node-weibo-picupload
v1.0.9
Published
Weibo picupload for node.
Downloads
18
Maintainers
Readme
next-node-weibo-picupload
Weibo picupload for node.
installation
npm install -S @jswork/next-node-weibo-picupload
usage
WEIBO_COOKIE=SUB=_2A25NmOccDeRhGeVI7VMZ8yzEyz-IHXVu7F_UrDV_PUNbm9AfLXbNkW9NTBpP0XrgXOp_OeWkgGQyy3tEb9mTbg6i
import '@jswork/next-node-weibo-picupload';
const items = glob.sync('__tests__/*.jpg', { absolute: true });
nx.nodeWeiboPicupload(items).then(console.log);
/*
[
{
width: 350,
size: 20251,
ret: 1,
height: 350,
name: 'pic_2',
pid: 'da432263gy1gqgtsu89utj209q09q0t2',
type: 'jpg',
url: 'https://tva1.sinaimg.cn/large/da432263gy1gqgtsu89utj209q09q0t2.jpg'
},
{
width: 200,
size: 9389,
ret: 1,
height: 200,
name: 'pic_1',
pid: 'da432263gy1gqgtsu7camj205k05k3yh',
type: 'jpg',
url: 'https://tva1.sinaimg.cn/large/da432263gy1gqgtsu7camj205k05k3yh.jpg'
}
]
*/
license
Code released under the MIT license.