This file describes Napa.js specific globals, please refer to this documentation for Node.js globals.
Shortcut to access napajs
module in all Napa enabled isolates. This is helpful to avoid extra require
when using napajs
module in anonymous function during broadcast
or execute
.
Example:
var napa = require('napajs');
var zone = napa.zone.create('zone1');
function test() {
global.napa.log('hi');
}
zone.execute(test);