Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

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