1.0.0 • Published 5 years ago

pixiv-img v1.0.0

Weekly downloads
76
License
MIT
Repository
github
Last release
5 years ago

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