
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
msl-server
Advanced tools

MSL (pronounced 'Missile') stands for Mock Service Layer. Our tools enable quick local deployment of your UI code on Node and mocking of your service layer for fast, targeted testing.
Here is the link to getting started
Use the following command to install MSL Server
npm install msl-server
Use the following command to install MSL Server globally
npm install -g msl-server
Launching MSL Server for local installation
./node_modules/msl-server/bin/msl [options]
Launching MSL Server for global installation
msl [options]
Available options for MSL server
An example of how the options work
msl --basedir=/approot --port=8001 --debug=true
You can also use config file to include options for launching MSL server An example of how the config file works
msl msl.conf.js(*.conf.js)
Here is the template for config file
#!/usr/bin/env node
module.exports = {
port: 8001,
basedir: '.'
debug: false,
extensions: 'parseUrl.js'
};
And here is the template of the extension file
exports.customUrlParsing = function (options) {
if (options.req.url.search('origURL')>0){
var str = options.req.url
var newUrl = str.replace('origURL','newUrl');
options.res.writeHead(200, {'Content-Type': 'application/json','Access-Control-Allow-Origin':'*'});
options.res.write('{"status":"url changed","message":"find the response with different url now"}');
}
else {
options.res.writeHead(500, {'Content-Type': 'application/json','Access-Control-Allow-Origin':'*'});
options.res.write('{"status":"error","message":"can not find response"}');
}
};
We encourage contribution from the open source community to help make MSL better. Please refer to the development page for more information on how to contribute to this project including sign off and the DCO agreement.
If you have any questions or discussion topics, please post them on Google Groups.
Our project is built automatically on Travis-CI for all pull requests and merge requests.
After you checkout the code, execute E2E tests by running test/e2e-run.sh from the root folder. This script will:
MSL project is licensed under Apache License Version 2.0
FAQs
Web Server for MSL (Mock Service Layer)
We found that msl-server demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.