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.
A container module to group lots of simple functional tools. This package only re-export all of the fp-dom
tools found here.
All packages are re-exported without the fd-
prefix. Some packages, fd-select
, fd-class
exports more than one function and are also available in the root level of fp-dom
.
import * as fpdom from 'fp-dom';
// use any module:
let appendtoBody = fpdom.append(document.body),
h1 = fpdom.elem('h1','meow'),
h2 = fpdom.elem('h2', 'bow');
appendtoBody(h1);
fpdom.replace(document.body,h2,h1);
let foo = fpdom.select(document)('.foo'); // array of .foo elements
let bar = fpdom.selectOne(document)('.bar'); // first .bar element
import { animate, append, listen, select, velem } from 'fp-dom';
// use them directly
let onClick = listen('click');
let onClickSetClicked = onClick((event) => {
event.target.innerHTML = 'clicked';
});
onClickSetClicked(select('.link'));
You can still use ES5 modules to require
some or all modules.
var fpdom = require('fp-dom');
var selectOne = require('fp-dom').selectOne;
var replace = require('fp-dom').replace;
addClass / removeClass / toggleClass / hasClass
select / selectOne
FAQs
A collection of functions to favor functional programming in a DOM context
The npm package fp-dom receives a total of 0 weekly downloads. As such, fp-dom popularity was classified as not popular.
We found that fp-dom demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.