ApplesauceOS
Read Markdown ↗Download .md

exports

Add properties to the module’s initial exports object.

js
exports

Arguments

No arguments.

Returns

Object alias of the initial module.exports.

Example

js
exports.greet = name => "Hello " + name;

Notes

A runtime property, not a function. Module state is separate for each script iteration.

All JavaScript APIs · Automation playbook