image-raub
Advanced tools
Comparing version 1.0.1 to 2.0.0
{ | ||
"author": "Luis Blanco <luisblanco1337@gmail.com>", | ||
"name": "image-raub", | ||
"version": "1.0.1", | ||
"version": "2.0.0", | ||
"description": "Native Image loader for Node.js", | ||
@@ -16,4 +16,4 @@ "license": "MIT", | ||
"engines": { | ||
"node": ">=8.11.1", | ||
"npm": ">=5.6.0" | ||
"node": ">=10.13.0", | ||
"npm": ">=6.4.1" | ||
}, | ||
@@ -32,5 +32,5 @@ "maintainers": [ | ||
"dependencies": { | ||
"addon-tools-raub": "^2.0.1", | ||
"deps-freeimage-raub": "~0.1.0" | ||
"addon-tools-raub": "4.1.0", | ||
"deps-freeimage-raub": "1.0.0" | ||
} | ||
} |
@@ -5,3 +5,9 @@ # Image for Node.js | ||
![NPM](https://nodei.co/npm/image-raub.png?compact=true) | ||
![Build Status](https://api.travis-ci.com/node-3d/image-raub.svg?branch=master) | ||
> npm i -s image-raub | ||
## Synopsis | ||
@@ -12,2 +18,3 @@ | ||
The `src` property can be: | ||
@@ -18,10 +25,10 @@ * A local file. | ||
Uses [FreeImage](http://freeimage.sourceforge.net/) as a backend decoder. | ||
## Install | ||
Additional features include: | ||
* Ability to save the image. | ||
* Some context 2d functionality, e.g. `drawImage`. | ||
``` | ||
npm i -s image-raub | ||
``` | ||
@@ -75,3 +82,6 @@ > Note: compilation tools must be in place on your system. | ||
* `once(string type, function cb)` - listen for one Image event. | ||
* `save(string dest, number ?w, number ?h)` - save Image to file. Resize to `w, h` is optional. | ||
* `save(string dest)` - save Image to file. Resize to `w, h` is optional. | ||
* `drawImage(src, ...)` - refer to | ||
[drawImage](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage), | ||
but optional params `dx, dy` are ignored. | ||
@@ -78,0 +88,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
20242
13
89
+ Addedaddon-tools-raub@4.1.0(transitive)
+ Addeddeps-freeimage-raub@1.0.0(transitive)
+ Addednan@2.11.1(transitive)
- Removedaddon-tools-raub@1.0.02.0.1(transitive)
- Removeddeps-freeimage-raub@0.1.0(transitive)
- Removednan@2.10.0(transitive)
Updatedaddon-tools-raub@4.1.0
Updateddeps-freeimage-raub@1.0.0