Save the image of pixiv.
$ npm install --save pixiv-img
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
Required
Type: string
URL of pixiv of img.
Type: String
Default: path.basename(imgUrl)
output path.
- pixiv.js - pixiv api client
MIT © akameco