
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.
@c8/simple-promised-file
Advanced tools
A small promise library with basic file functionality and promise-wrapped gm image module.
A small promise library with basic file functionality and promise-wrapped gm image module.
fs-extra
file functions (also promise wrapped) available on all File objectsnpm i @c8/simple-promised-file
'use strict'
const PromisedFile = require('@c8/simple-promised-file')
const File = PromisedFile.File
const Image = PromisedFile.Image // extends PromisedFile.File with gm package image functionality
Image(path.join(__dirname, '1.jpg'))
.then((img) => {
// Sync getters
console.log(img.size) // 32114 (bytes, preloaded)
console.log(img.extension) // jpg
// Async getters
img.mime.then(console.log) // image/jpeg
img.isImage.then(console.log) // true
img.depth().then(console.log) // 8
img.dimensions()
.then((dimensions) => {
console.log(`Dimensions: ${dimensions.width}x${dimensions.height}px`)
})
// etc
})
.catch(console.log)
shortid
Image(path.join(__dirname, '1.jpg'))
.then((img) => {
return img.uniqueName
})
.then(console.log) // Sy8e7we7.jpg
.catch(console.log)
gm
npm package in promised mannerconst blurAndResize = (img) => {
return img
.resize(257, 257)
.blur(23)
.write(path.join(__dirname, '3.jpg'))
}
Image(path.join(__dirname, '1.jpg'))
.then(blurAndResize)
.then(console.log)
.catch(console.log)
Developed for C8 MANAGEMENT LIMITED under MIT license
FAQs
A small promise library with basic file functionality and promise-wrapped gm image module.
The npm package @c8/simple-promised-file receives a total of 0 weekly downloads. As such, @c8/simple-promised-file popularity was classified as not popular.
We found that @c8/simple-promised-file demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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.