jipics
Node.JS wrapper for jipics image hosting website.
Installation
$ npm i jipics
Example
// Dependenciesvar Jipics = Request = ; // Upload the local fileJipics; // Upload some laaaarge file, from remoteJipics;
Documentation
upload(options, callback)
Uploads an image to jipics.net.
Params
- Object
options
: A string representing the image path or an object:path
(String): the path to the image.stream
(Stream): a readable stream to get the image from (remote, hard-disk etc).deleteAfterUpload
(Boolean): iftrue
, the image will be deleted after a sucessful upload.
- Function
callback
: The callback function.
Return
- Request The request object.
How to contribute
Have an idea? Found a bug? See how to contribute.
License
See the LICENSE file.