Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Image cropper utility that crops an image in any polygonal shape chosen and returns a base64 of the cropped area.
Image cropper utility that crops an image in any polygonal shape chosen and returns a base64 of the cropped area.
$ npm install idcrop
const IdCrop = require("idcrop");
const idcrop = new IdCrop(
"#displayContainer",
"#previewContainer",
"#toolbarContainer",
6
);
idcrop.init();
The paramenters for the init
function are, in order:
You must create a container for display (cropping area), toolbar (for now, only filename) and preview (cropped area preview).
For now, you can only have one cropper per page.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>IdCrop</title>
<link rel="stylesheet" type="text/css href="https://unpkg.com/idcrop@1.2.1/dist/css/main.min.css">
</head>
<body>
<div id="displayContainer"></div>
<div id="toolbarContainer"></div>
<div id="previewContainer"></div>
<script type="text/javascript" src="./path/to/js/file.js"></script>
</body>
</html>
$ npm install & npm start
We use a combination of eslint and prettier for the formatting and linting of our JS code.
$ npm run lint
$ npm run fix
Copyright © 2017, Idwall. Released under the MIT license.
FAQs
Image cropper utility that crops an image in any polygonal shape chosen and returns a base64 of the cropped area.
The npm package idcrop receives a total of 66 weekly downloads. As such, idcrop popularity was classified as not popular.
We found that idcrop 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
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.