
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
exif-orientation
Advanced tools
Returns the exif orientation is scale / rotation from a file object
Returns the exif orientation in scale / rotation from a file object
npm install exif-orientation --save
The following example reacts to the onChange
event of a file upload html input
var findOrientation = require('exif-orientation');
fileUpload.addEventListener('change',function(e) {
var file = e.target.files[0];
findOrientation(file,function(err,orientation) {
if (!err) {
console.log(orientation); // displays {scale: {x: 1, y: 1}, rotation: 90}
}
});
});
findOrientation(file,callback)
file
A file object from a file upload html input
callback
A function to be called once the orientation data is found or an error occured. The callback is passed 2 arguments (err,orientation)
. If err
is undefined, orientation will contain the orientation data, otherwise err will be an Error
object with the message of the error.
MIT, see LICENSE.md for details.
FAQs
Returns the exif orientation is scale / rotation from a file object
The npm package exif-orientation receives a total of 526 weekly downloads. As such, exif-orientation popularity was classified as not popular.
We found that exif-orientation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.