Comparing version 1.4.2 to 1.4.3
{ | ||
"name": "danbooru", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"description": "danbooru api wrapper", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -37,2 +37,3 @@ # danbooru-node | ||
- [post.favorite([yes], [callback])](#postfavoriteyes-callback) | ||
- [post.url](#posturl) | ||
@@ -173,3 +174,3 @@ <!-- END doctoc generated TOC please keep comment here to allow auto update --> | ||
#### post.get([callback]) | ||
This does a get request to your post's `file_url`, which is usually your post's full size image. This also uses [request](https://www.npmjs.com/package/request), just like `Danbooru.request()` | ||
This does a get request to your post's `file_url`, which is usually your post's full size image. This also uses [request](https://www.npmjs.com/package/request), just like `Danbooru.request()`. | ||
* `callback` _function(err, response, body)_. Callback function. `response` is a usual node HTTP response, while `body` is your image data. | ||
@@ -179,3 +180,3 @@ * **returns** _request_. Request object. | ||
#### post.getLarge([callback]) | ||
This does a get request to your post's `large_file_url`, which is a large image appropriate for browsers, but not original size. It's sometimes the same image as `file_url`. This also uses [request](https://www.npmjs.com/package/request), just like `Danbooru.request()` | ||
This does a get request to your post's `large_file_url`, which is a large image appropriate for browsers, but not original size. It's sometimes the same image as `file_url`. This also uses [request](https://www.npmjs.com/package/request), just like `Danbooru.request()`. | ||
* `callback` _function(err, response, body)_. Callback function. `response` is a usual node HTTP response, while `body` is your image data. | ||
@@ -185,3 +186,3 @@ * **returns** _request_. Request object. | ||
#### post.getPreview([callback]) | ||
This does a get request to your post's `preview_file_url`, which is usually your post's tiny preview image, useful for thumbnails. This also uses [request](https://www.npmjs.com/package/request), just like `Danbooru.request()` | ||
This does a get request to your post's `preview_file_url`, which is usually your post's tiny preview image, useful for thumbnails. This also uses [request](https://www.npmjs.com/package/request), just like `Danbooru.request()`. | ||
* `callback` _function(err, response, body)_. Callback function. `response` is a usual node HTTP response, while `body` is your image data. | ||
@@ -194,1 +195,4 @@ * **returns** _request_. Request object. | ||
* `callback` _function(err, data)_. It's a callback. | ||
#### post.url | ||
This property contains a human friendly post url. This is where you would find this post if you were manually browsing Danbooru in a browser. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26094
194