image-raub
Advanced tools
Comparing version 4.2.0 to 4.2.1
@@ -10,2 +10,4 @@ 'use strict'; | ||
const core = require(`./${getBin()}/image`);module.exports = core; | ||
const core = require(`./${getBin()}/image`); | ||
module.exports = core; |
@@ -19,3 +19,5 @@ declare module "image-raub" { | ||
/** Image | ||
/** | ||
* Image | ||
* | ||
* It is similar to the web Image. | ||
@@ -36,2 +38,8 @@ * Extends EventEmitter to provide event-handling. | ||
/** Image width. */ | ||
readonly width: number; | ||
/** Image height. */ | ||
readonly height: number; | ||
/** Alias for width. */ | ||
@@ -49,3 +57,5 @@ readonly naturalWidth: number; | ||
/** Similar to .on('error', cb). | ||
/** | ||
* Similar to .on('error', cb). | ||
* | ||
* Setter adds a new callback. If passed `null`, removes ALL callbacks. | ||
@@ -56,3 +66,5 @@ * Getter returns an Array of currently existing callbacks. | ||
/** Similar to .on('load', cb). | ||
/** | ||
* Similar to .on('load', cb). | ||
* | ||
* Setter adds a new callback. If passed `null`, removes ALL callbacks. | ||
@@ -66,3 +78,5 @@ * Getter returns an Array of currently existing callbacks. | ||
/** Add event listener. | ||
/** | ||
* Add event listener. | ||
* | ||
* 'error' - something went wrong. | ||
@@ -69,0 +83,0 @@ * 'load' - image has been loaded. |
{ | ||
"author": "Luis Blanco <luisblanco1337@gmail.com>", | ||
"name": "image-raub", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "Native Image loader for Node.js", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
14561
295