
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.
frp-middleware
Advanced tools
an abstraction for adding minimal functional reactive middleware functionality
This module aims to ease building middleware DSL's. It implements a basic functional reactive programming Interface.
$ npm install frp-middelware --save
let stream = new SomeStream()
stream.map(data => data + '!!!') // => hello world!!!
.fork(data => data + '???') // => hello world!!!???
.map(data => data + '...') // => hello world!!!...
// invokes the stream
stream.subscribe()
import Middleware from 'frp-middleware'
class SomeStream extends Middleware {
subscribe() { // or you could use the 'emit' method. it is the same thing
const middleware = super.subscribe()
setIntervall(() => middleware('hello world'), 500)
}
}
changes the data in the stream and passes the altered data to the next function in the pipeline
Forks a stream and applies a function to it. The child stream runs independently of the parent stream.
Returns the middleware function Should be implemented as a way to start listening to the stream.
Returns the middleware function. Should be implemented as a way to fire events on the stream.
Version 0.0.4 2015-11-16
Fix babel compile error. Reference: https://github.com/babel/babel/issues/2700
FAQs
an abstraction for adding minimal functional reactive middleware functionality
The npm package frp-middleware receives a total of 5 weekly downloads. As such, frp-middleware popularity was classified as not popular.
We found that frp-middleware 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.
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.