New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jpegtran

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jpegtran - npm Package Compare versions

Comparing version 1.1.0 to 2.0.0

CHANGELOG.md

20

package.json
{
"name": "jpegtran",
"version": "1.1.0",
"version": "2.0.0",
"description": "The jpegtran utility as a readable/writable stream",

@@ -17,5 +17,5 @@ "main": "lib/JpegTran.js",

"eslint-config-prettier": "^6.0.0",
"eslint-config-standard": "^14.0.0",
"eslint-config-standard": "^16.0.1",
"eslint-plugin-import": "^2.17.3",
"eslint-plugin-mocha": "^7.0.0",
"eslint-plugin-mocha": "^8.0.0",
"eslint-plugin-node": "^11.0.0",

@@ -26,14 +26,16 @@ "eslint-plugin-promise": "^4.0.1",

"nyc": "^15.0.0",
"prettier": "~2.0.2",
"offline-github-changelog": "^2.0.0",
"prettier": "~2.2.0",
"semver": "^7.0.0",
"sinon": "^9.0.0",
"unexpected": "^11.0.0",
"unexpected-sinon": "^10.7.1",
"unexpected-stream": "^4.0.0"
"unexpected": "^12.0.0",
"unexpected-sinon": "^11.0.0",
"unexpected-stream": "^5.0.0"
},
"scripts": {
"lint": "eslint . && prettier --check '**/*.js'",
"lint": "eslint . && prettier --check '**/*.{js,json,md}'",
"coverage": "NODE_ENV=development nyc --reporter=lcov --reporter=text --all -- npm test && echo google-chrome coverage/lcov-report/index.html",
"test": "mocha",
"test:ci": "npm test && npm run coverage"
"test:ci": "npm test && npm run coverage",
"preversion": "offline-github-changelog --next=${npm_package_version} > CHANGELOG.md && git add CHANGELOG.md"
},

@@ -40,0 +42,0 @@ "repository": {

@@ -1,3 +0,2 @@

node-jpegtran
=============
# node-jpegtran

@@ -21,3 +20,3 @@ [![NPM version](https://badge.fury.io/js/jpegtran.svg)](http://badge.fury.io/js/jpegtran)

var JpegTran = require('jpegtran'),
myJpegTranslator = new JpegTran(['-rotate', 90, '-progressive']);
myJpegTranslator = new JpegTran(['-rotate', 90, '-progressive']);

@@ -32,25 +31,31 @@ sourceStream.pipe(myJpegTranslator).pipe(destinationStream);

var JpegTran = require('jpegtran'),
http = require('http');
http = require('http');
http.createServer(function (req, res) {
http
.createServer(function (req, res) {
if (req.headers['content-type'] === 'image/jpeg') {
res.writeHead(200, {'Content-Type': 'image/jpeg'});
req.pipe(new JpegTran(['-grayscale', '-flip', 'horizontal'])).pipe(res);
res.writeHead(200, { 'Content-Type': 'image/jpeg' });
req.pipe(new JpegTran(['-grayscale', '-flip', 'horizontal'])).pipe(res);
} else {
res.writeHead(400);
res.end('Feed me a JPEG!');
res.writeHead(400);
res.end('Feed me a JPEG!');
}
}).listen(1337);
})
.listen(1337);
```
Installation
------------
## Installation
Make sure you have node.js and npm installed, then run:
npm install jpegtran
```
npm install jpegtran
```
License
-------
## Releases
[Changelog](https://github.com/papandreou/node-jpegtran/blob/master/CHANGELOG.md)
## License
3-clause BSD license -- see the `LICENSE` file for details.

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