
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
fairmont-reactive
Advanced tools
Functional reactive programming in JavaScript and CoffeeScript.
Fairmont-Reactive is a JavaScript library for functional reactive programming. It's part of the Fairmont library. You can use it by itself, or simply as part of the Fairmont library.
npm install fairmont-reactive
Here's a simple reactive Web app implementing a counter using Fairmont's Reactive programming functions.
In JavaScript:
var $ = require("jquery"),
F = require("fairmont");
$(function() {
var data = { counter: 0 };
F.go([
F.events("click", $("a[href='#increment']")),
F.map(function() { data.counter++; })
]);
F.go([
F.events("change", F.observe(data)),
F.map(function() {
$("p.counter")
.html(data.counter);
})
]);
});
In CoffeeScript:
{start, flow, events, map, observe} = require "fairmont-reactive"
$ = require "jquery"
$ ->
data = counter: 0
go [
events "click", $("a[href='#increment']")
map -> data.counter++
]
go [
events "change", observe data
map ->
$("p.counter")
.html data.counter
]
You can run this example or look at our other reactive examples:
Check out the wiki for an getting started guides, tutorials, and reference documentation.
[Fairmont][0] is still under heavy development and is beta
quality, meaning you should probably not use it in your production code.
You can get an idea of what we're planning by looking at the [issues list][200]. If you want something that isn't there, and you think it would be a good addition, please open a ticket.
FAQs
Functional reactive programming in JavaScript and CoffeeScript.
The npm package fairmont-reactive receives a total of 5,625 weekly downloads. As such, fairmont-reactive popularity was classified as popular.
We found that fairmont-reactive demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.