pixiv-img

1.0.0 • Public • Published

pixiv-img Build Status

Save the image of pixiv.

Install

$ npm install --save pixiv-img

Usage

Save the image of pixiv in the current directory.

const pixivImg = require('pixiv-img');
const imgUrl = 'http://i3.pixiv.net/img-original/img/2016/03/31/00/31/46/56100246_p0.jpg';
 
pixivImg(imgUrl).then(output => {
    console.log(output);
});
//=> '56100246_p0.jpg'

Use with pixiv.js

API

pixivImg(imgUrl, [output])

imgUrl

Required
Type: string

URL of pixiv of img.

output

Type: String
Default: path.basename(imgUrl)

output path.

Related

License

MIT © akameco

/pixiv-img/

    Package Sidebar

    Install

    npm i pixiv-img

    Weekly Downloads

    108

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    3.24 kB

    Total Files

    5

    Last publish

    Collaborators

    • akameco