summaryrefslogtreecommitdiffstats
path: root/DOCS/man/javascript.rst
Commit message (Collapse)AuthorAgeFilesLines
* manpage: upcase JavaScript for section title case consistency.torque2017-07-171-1/+1
|
* js: utils.getenv(): fix crash on undefined varAvi Halachmi (:avih)2017-07-061-1/+2
|
* js: add javascript scripting support using MuJSAvi Halachmi (:avih)2017-06-141-0/+336
Implements JS with almost identical API to the Lua support. Key differences from Lua: - The global mp, mp.msg and mp.utils are always available. - Instead of returning x, error, return x and expose mp.last_error(). - Timers are JS standard set/clear Timeout/Interval. - Supports CommonJS modules/require. - Added at mp.utils: getenv, read_file, write_file and few more. - Global print and dump (expand objects) functions. - mp.options currently not supported. See DOCS/man/javascript.rst for more details.