Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/afeiship/next-node-weibo-picupload
Weibo picupload for node.
https://github.com/afeiship/next-node-weibo-picupload
cookie image next node oss picture picupload sina token upload weibo
Last synced: 22 days ago
JSON representation
Weibo picupload for node.
- Host: GitHub
- URL: https://github.com/afeiship/next-node-weibo-picupload
- Owner: afeiship
- License: mit
- Created: 2021-05-13T06:34:43.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-19T04:10:17.000Z (almost 2 years ago)
- Last Synced: 2024-10-12T14:26:57.969Z (3 months ago)
- Topics: cookie, image, next, node, oss, picture, picupload, sina, token, upload, weibo
- Language: JavaScript
- Homepage:
- Size: 54.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-node-weibo-picupload
> Weibo picupload for node.[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]## installation
```bash
npm install -S @jswork/next-node-weibo-picupload
```## usage
```conf
WEIBO_COOKIE=SUB=_2A25NmOccDeRhGeVI7VMZ8yzEyz-IHXVu7F_UrDV_PUNbm9AfLXbNkW9NTBpP0XrgXOp_OeWkgGQyy3tEb9mTbg6i
``````js
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](https://github.com/afeiship/next-node-weibo-picupload/blob/master/LICENSE.txt).[version-image]: https://img.shields.io/npm/v/@jswork/next-node-weibo-picupload
[version-url]: https://npmjs.org/package/@jswork/next-node-weibo-picupload[license-image]: https://img.shields.io/npm/l/@jswork/next-node-weibo-picupload
[license-url]: https://github.com/afeiship/next-node-weibo-picupload/blob/master/LICENSE.txt[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-node-weibo-picupload
[size-url]: https://github.com/afeiship/next-node-weibo-picupload/blob/master/dist/next-node-weibo-picupload.min.js[download-image]: https://img.shields.io/npm/dm/@jswork/next-node-weibo-picupload
[download-url]: https://www.npmjs.com/package/@jswork/next-node-weibo-picupload