
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
crop-universal
Advanced tools
Crop all transparent pixel around an image's edges.
⚠️ This package is environment agnostic. It requires you to provide a Canvas
implementation. It'll be more simple for you to use:
crop-browser
crop-node
crop-node-cli
npm install crop-universal
import crop from "crop-universal";
// You're in charge of providing a couple of function corresponding to your environment
const cropper = crop({ createCanvas, loadImage });
const url = "path/to/file.png";
const canvas = cropper(url);
crop(environment)
Name | Type | Default | Comment |
---|---|---|---|
environment | Object | required | Object holding a createCanvas and a loadImage implementation |
This will return a Function
that you can use to crop.
crop(environment)(input, [options])
Name | Type | Default | Comment |
---|---|---|---|
input | String|Image|HTMLImageElement | required | Path to the image to process or any type supported by your Canvas.prototype.drawImage environment |
options | Options | undefined | Allow to forward options to detect-edges |
This will return a canvas with the result drawn onto.
FAQs
Crop transparent pixel from image
The npm package crop-universal receives a total of 3 weekly downloads. As such, crop-universal popularity was classified as not popular.
We found that crop-universal 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.