Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 528 Bytes

napa-globals.md

File metadata and controls

20 lines (13 loc) · 528 Bytes

Napa.js specific global variables

This file describes Napa.js specific globals, please refer to this documentation for Node.js globals.

global.napa

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);