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

images

Package Overview
Dependencies
Maintainers
4
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

images - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

scripts/install.js

6

index.js

@@ -32,3 +32,3 @@ /*

path = require("path"),
_images = require("./binding.js"),
_images = require("./scripts/util/binding.js")(),
_Image = _images.Image,

@@ -181,2 +181,3 @@ slice = Array.prototype.slice,

images.TYPE_RAW = _images.TYPE_RAW;
images.TYPE_WEBP = _images.TYPE_WEBP;

@@ -189,3 +190,4 @@ FILE_TYPE_MAP = {

".bmp": images.TYPE_BMP,
".raw": images.TYPE_RAW
".raw": images.TYPE_RAW,
".webp": images.TYPE_WEBP
};

@@ -192,0 +194,0 @@

{
"name": "images",
"version": "3.0.0",
"description": "Cross-platform image decoder(png/jpeg/gif) and encoder(png/jpeg) for Node.js",
"version": "3.0.1",
"description": "Cross-platform image decoder(webp/png/jpeg/gif) and encoder(webp/png/jpeg) for Node.js",
"main": "index.js",
"bindingsCDN": "https://raw.githubusercontent.com/zhangyuanwei/node-images/master/bindings/",
"bindingMap": {
"0.8.0": [
"0.8.0",
"0.8.25"
],
"0.9.11": [
"0.10.0",
"0.10.99"
],
"0.12.0": [
"0.12.0",
"0.12.99"
],
"4.0.0": [
"4.0.0",
"4.99.99"
],
"5.0.0": [
"5.0.0",
"5.99.99"
],
"6.0.0": [
"6.0.0",
"6.99.99"
]
},
"scripts": {
"test": "node test.js",
"install": "echo \"Hello, World.\""
"install": "node ./scripts/install.js"
},
"repositoryName": "zhangyuanwei/node-images",
"repository": {

@@ -41,2 +15,9 @@ "type": "git",

},
"dependencies": {
"mkdirp": "^0.5.1",
"nan": "^2.3.2",
"node-gyp": "^3.3.1",
"npmlog": "^4.0.0",
"request": "^2.79.0"
},
"keywords": [

@@ -46,2 +27,3 @@ "image",

"encoder",
"webp",
"png",

@@ -58,9 +40,3 @@ "jpeg",

"url": "https://github.com/zhangyuanwei/node-images/issues"
},
"devDependencies": {
"step": "0.0.5"
},
"dependencies": {
"nan": "^2.3.2"
}
}

@@ -16,13 +16,13 @@ ![images logo](https://raw.github.com/zhangyuanwei/node-images/master/demo/logo.png)

//在(10,10)处绘制Logo
.save("output.jpg", { //Save the image to a file,whih quality 50
.save("output.jpg", { //Save the image to a file, with the quality of 50
quality : 50 //保存图片到文件,图片质量为50
});
});
```
## Features 功能特性
* Lightweight:no need to install any image processing library.
* Lightweight: no need to install any image processing library.
* 轻量级:无需安装任何图像处理库。
* Cross-platform: Released a compiled .node file on windows, just download and start.
* 跨平台:Windows下发布了编译好的.node文件,下载就能用。
* Easy-to-use: Provide jQuery-like chaining API.Simple and reliable!
* Easy-to-use: Provide jQuery-like chaining API. Simple and reliable!
* 方便用:jQuery风格的API,简单可依赖。

@@ -126,3 +126,3 @@

### images.gc()
Forced call garbage collection
Forced garbage collection
强制调用V8的垃圾回收机制

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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