Is It Possible to implement Java Core Features In Node Js ??
Yes , Is it possible to implement java core features in Node Js by using 'java4node' npm module.This Library is awesome that provide very easy methods to implement java features in node js in javascript manner
"java4node" : java runner in javascript
Features :
- Multithreading
- System.out.println(" ..any logs ");
Upcoming Features :
- Java Classes
- Java Function overloading
Usage :
just fire the commend on terminal :
npm install java4node
Methods :
.multiThreading(tasks , callbacks)
This Function is use for perform multi threading in java script manner
.System.out.println();
This Functions is use for print the output in the terminal or console window
var java = require('java4node')
java.multiThreading({
one: function(callback) {
java.System.out.println("function one is running");
callback()
},
two: function(callback) {
java.System.out.println("function two is running");
callback()
},
three: function(callback) {
java.System.out.println("function three is running");
callback()
}
}, function(err, results) {
callback(err, results)
});
This is very easy module for implement java features in nodejs . Thanks for reading blog
see you on next blog
see you on next blog
No comments:
Post a Comment