
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.
[]() []() []() [ => Object
grumpkin accepts a
and returns an object literal with the computed properties.
/* test/style.css */
div { cursor: pointer; }
div.foo {
width: 46px;
color: #fff;
}
.foo {
width: 100px;
height: 300px;
}
#bar { height: 50px; }
import 'babel-polyfill';
import { before, describe, it } from 'mocha';
import React from 'react';
import chai from 'chai';
import fileSystem from 'fs';
import grumpkin from 'grumpkin';
chai.should();
describe('grumpkin', () => {
let stylesheet = null;
before((done) => {
fileSystem.readFile('./test/style.css', 'utf8', (exception, readData) => {
stylesheet = readData;
done();
});
});
it('simple render', () => {
const element = <div className="foo" id="bar">Hello World!</div>;
const computedStyle = grumpkin(element, stylesheet);
computedStyle.should.have.property('width').and.equal('46px');
computedStyle.should.have.property('height').and.equal('50px');
computedStyle.should.have.property('color').and.equal('#fff');
computedStyle.should.have.property('cursor').and.equal('pointer');
});
});
FAQs
[]() []() []() [![GitHub license](https://img.shields.io/badge/license-MIT-blu
The npm package grumpkin receives a total of 0 weekly downloads. As such, grumpkin popularity was classified as not popular.
We found that grumpkin 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.