java4node
v0.0.2
Published
use java features in nodejs in very easy way
Downloads
6
Readme
Java4node :
Its a npm module for providing Java Features is Javescript Manner like multithreadig etc
Features:
- Jave Multithreading is now available in javascript
- System.out.println(" ..any logs "); now in javascript
- upcoming : classes , function overloading , dataTypes like , int i = 10;
Installation
npm install java4node
Usage
js
var java = require('java4node');
Methods :
multiThreading
.multiThreading(tasks , callbacks)
This Function is use for perform multithreading in java script manner
logs
.System.out.println();
This Functions is use for print the output in the termianl or console window
Simple example
Basic example of adding this middleware as the error handler only in development
with connect
(express
also can be used in this example).
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)
});
## license
[ISC](https://github.com/)