Skip to end of metadata
Go to start of metadata

exports

 

Object used to provide functions, variables, and properties for use by another script. Use require in another script to obtain the exports in the current script.

Exports will not work if you set exports = to an object (e.g., {"key" : "value" }). You must set properties of the exports object as can be seen in the example. 

Require Extended Library: 

 

 

Examples

js example file with exports

  • No labels