pixiv-img
v1.0.0
Published
Save iamge of pixiv
Downloads
227
Maintainers
Readme
pixiv-img
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
- pixiv.js - pixiv api client
License
MIT © akameco