Noticeably Playful Monkeys

    @jswork/next-node-weibo-picupload

    1.0.6 • Public • Published

    next-node-weibo-picupload

    Weibo picupload for node.

    version license size download

    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.

    Install

    npm i @jswork/next-node-weibo-picupload

    DownloadsWeekly Downloads

    7

    Version

    1.0.6

    License

    MIT

    Unpacked Size

    7.33 kB

    Total Files

    6

    Last publish

    Collaborators

    • afeiship