Node for Max API

Reference for the API exposed as "max-api" when running NodeJS applications using the [node.script] object. This API can be required using

const maxAPI = require("max-api");

Enums

ItemDescription
MAX_ENVEnum options for the value Node For Max will set on process.env.MAX_ENV
MESSAGE_TYPESPredefined generic MaxFunctionSelector types
POST_LEVELSLog Levels used in maxAPI.post

Functions

ItemDescription
addHandlerRegister a single handler
addHandlersRegister handlers
getDictGet the value of a dict object
outletOutlet any values
outletBangOutlet a Bang
postPost to the Max console. Setting the last argument to a value of maxAPI.POST_LEVELS allows control of the log level
removeHandlerRemove a single handler
removeHandlersRemove handlers
setDictSet the value of a dict object
updateDictPartially update the value of a dict object at a given path

Type Aliases

ItemDescription
Anything
JSONArray
JSONObject
JSONPrimitive
JSONValue
MaxFunctionHandler
MaxFunctionSelector