Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

danbooru

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

danbooru - npm Package Compare versions

Comparing version 1.4.2 to 1.4.3

2

package.json
{
"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.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc