Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
express-js-mod
Advanced tools
This is a express like package for working in the Moddable SDK.
This is not meant to be a 1-1 port, but it attempts to maintain the same interface
we know from express.
git clone https://github.com/dashcraft/express-js-mod.git
or git clone git@github.com:dashcraft/express-js-mod.git
cd express-js-mod && yarn install
yarn build
Copy the /express-js-mod
folder into your moddable sdk project,
then make sure to add the module for the contents of the folder as follows:
manifest.json
{
"include": [
... other files
"./express-js-mod/manifest.json"
],
"preload": [
... other files
"express-js-mod/*"
],
"modules": {
"*": [
... other files
"./express-js-mod/*"
],
"express-js-mod/*": "./express-js-mod/*"
}
}
First import the primary package
import Express from 'express-js-mod'
Afterwards, when the moddable sdk server has been created...
import { Server } from "http";
We can add routes and callbacks like...
let app = new Express(Server)
app.get('/home', function(req,res) {
res.status(200)
res.json({test: 'test'})
})
let port = 80 // 80 is the default anyways
app.listen(port)
FAQs
An express like router for moddable sdk and XS javascript engine
We found that express-js-mod 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.