
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.
mf-microservice
Advanced tools
Microservice is apart of Microframework modules.
This module give you abilities to create microservice from any local object/module. All public functions will be available to call from external.
Installation
npm install mf-microserivce
This module require Node.js > 0.12.x
Require mf-microservice
const microService = require('mf-microservice');
Prepare your object or using any existed object
//Example object
var example = {
getName: function () {
return { name: 'example' };
},
getVersion: function () {
return { version: '1.0.1' };
},
_protected: function () {
return { message: 'This function shouldn\'t available' };
},
getParams: function () {
var data = [];
for(i in arguments){
data.push(arguments[i]);
}
return data;
}
}
Use Microservice to provide service from the object
//Implement microservice with cluster support
var app = microService(example);
if (cluster.isMaster) {
for (var i = 0; i < 4; i++) {
cluster.fork();
}
cluster.on('exit', (worker, code, signal) => {
console.log(`Worker ${worker.process.pid} died`);
});
} else {
app.server.listen(8080);
}
This module public under MIT License
FAQs
API as a microservice
We found that mf-microservice 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
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.