
Security News
CISA Kills Off RSS Feeds for KEVs and Cyber Alerts
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
@cubelets/replug
Advanced tools
A lightweight plugin manager for the Map/Reduce and the Observable world
Using npm:
npm install --save @cubelets/replug
or using yarn:
yarn add @cubelets/replug --dev
You want to use plugins to extend the functionality of your code. Given a list of plugins, your application will first initialise and then run them.
import {examplePlugin} from './examplePlugin.js
const pluginsList = [examplePlugin]
const config = {
lang: 'en'
}
const plugins = replug(pluginsList, config)
const initialData = 'Hello'
const result = plugins('message', initialData) // 'Hello, world'
Each plugin exports a hash of hooks that can process input and return an output.
examplePlugin.js
export default {
'exampleMessage': config => data => ${data}, world!
}
You want to use plugins to moderate content before rendering
module.js
import {moderation} from './moderation.js
const pluginsList = [moderation]
const config = { }
const plugins = replug(pluginsList, config)
const initialData[] = await fetch('/api/getMessages').then(x=>x.json())
const result = plugins('moderate', data)
moderation.js
export default {
'moderate': config => {
const blackList = await fetch('/word-blacklist').then(x=>x.json())
return data[] => data.map(str => blackList.forEach(word => str.replace(word, '###redacted###')))
}
}
### HTML Plugins
### Duplex streams via Observables (like a messagebus)
FAQs
A lightweight plugin manager
The npm package @cubelets/replug receives a total of 0 weekly downloads. As such, @cubelets/replug popularity was classified as not popular.
We found that @cubelets/replug 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.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.