max-api-or-not

1.2.0 • Public • Published

Max API or Not

A module that allows error-free running of Node for Max scripts, that use max-api, outside of Cycling '74's Max. Meant to be loaded instead of max-api.

Installation

npm install max-api-or-not

How it works

When max-api-or-not is required in a script run by a [node.script] object, it returns the max-api. When loaded on other environments, where max-api is absent, max-api-or-not will export an object that is identical to max-api, concerning structure and types, but has no functionality.

Features

  • Max.post triggers a console.log
  • max-api-or-not has an extra element called noMax that is true when it is called outside of Max and undefined in Max.

Package Sidebar

Install

npm i max-api-or-not

Weekly Downloads

5

Version

1.2.0

License

CC-BY-4.0

Unpacked Size

1.81 kB

Total Files

3

Last publish

Collaborators

  • dimitriaatos