
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.
A geometry calculator in nodeJS.
# install
$ npm install gcn_sample
# run tests
$ npm test
# run tests with coverage
$ npm run test-cov
Note: I filed an issue on the buffer deprecation warning for covert
.
Calculates the geometry of the shape based on dimensions
Required argument
shape
ObjectRequired keys for shape
shape
String triangle|rectanglegeometry
String area|circumferencedimensions
Array [numbers]Required arguments for dimensions
by shape and geometry
[base, height]
[sideA, sideB, sideC]
[base, height]
[base, height]
Calculates the total area of shapes provided
Required argument
shapes
Array [Objects]Required keys for each shape
shape
String triangle|rectangle|circledimensions
Array [numbers]Required arguments for dimensions
by shape
[base, height]
[base, height]
[radius]
var GCN = require('gcn_sample'),
gcn = new GCN(),
triangle = {
shape: 'triangle', geometry: 'circumference', dimensions: [5, 5, 5]
},
circumferenceOfTriangle = gcn.calc(triangle),
multipleShapes = [
{shape: 'triangle', dimensions: [6, 6]},
{shape: 'rectangle', dimensions: [10, 10]},
{shape: 'circle', dimensions: [5]}
],
totalArea = gcn.totalAreaMultipleShapes(multipleShapes);
MIT
FAQs
A geometry calculator in node.js
The npm package gcn_sample receives a total of 0 weekly downloads. As such, gcn_sample popularity was classified as not popular.
We found that gcn_sample 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.