Including JS libraries

frederiktollund's icon

Hey all.

I'm trying to create a JS object that uses this Javascript library https://github.com/keen/keen-js .
Normally I would include the library as described in the guide:

What's the equivalent to doing this in Max? How can I place the file so it can be loaded and seen in a Max patch?

Thanks!

to_the_sun's icon

I'm curious about this as well.

yaniki's icon

The "require" directive should work.

to_the_sun's icon

Doesn't this mean all of the NPM libraries have always been accessible, even before the advent of Node for Max?