
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.
Designed to be used with browserify.
Please note that this DOM library is not yet production ready. So for the moment: use at your own risk.
Install using npm:
$ npm install tnt-dom
Add it to your Javascript:
var tnt = require('tnt-dom');
// From HTML string
var el = new tnt( '<div class="my-class">My element</div>' );
// From selector
var el = new tnt( 'div.my-class' );
// From HTMLElement
var el = new tnt( document.body );
element.forEach( function( el ) {
console.log( el );
} );
Gets the amount of matched elements
element.length();
Gets a HTMLElement by index
element.get( 0 );
Removes the element from the DOM.
element.remove();
Makes a new copy of the element(s)
element.copy();
Append one or multiple elements to the current element
element.append( new tnt( 'body' ) );
or
element.append( '<button>my button</button>' ) );
Append the current element to an element
element.appendTo( new tnt( document.body ) );
Inserts the element(s) before an element
element.appendTo( new tnt( document.body ) );
Wrap the element(s) with an element
element.wrap( new tnt( '<div></div>' ) );
Sets a CSS property to the element(s)
element.css( 'color', 'red' );
Adds a class to the element(s)
element.addClass( 'my-class' );
Removes a class from the element(s)
element.removeClas( 'my-class' );
FAQs
Super simple DOM utilities
The npm package tnt-dom receives a total of 0 weekly downloads. As such, tnt-dom popularity was classified as not popular.
We found that tnt-dom 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.