
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
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.5 2015-11-17
Fix development dependencies being used as regular dependencies
FAQs
an abstraction for adding minimal functional reactive middleware functionality
The npm package frp-middleware receives a total of 6 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.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.