zeek/testing/scripts
Arne Welzel f0b9c59adb Add experimental JavaScript support when libnode is available
zeek.on('zeek_init', () => {
        console.log('Hello, Zeek!');
    });

For interaction with external systems and HTTP APIs, JavaScript and the
Node.js ecosystem beat Zeek script. Make it more easily accessible by
including ZeekJS with Zeek directly.

When a recent enough libnode version is found on the build system, ZeekJS is
added as a builtin plugin. This behavior can be disabled via
``--disable-javascript``. Linux distributions providing such a package are
Ubuntu (22.10) and Debian (testing/bookworm) as libnode-dev.
Fedora provides it as nodejs-devel.

This plugin takes over loading of .js or .cjs files. When no such files
are provided to Zeek, Node and the V8 engine are not initialized and
should not get into the way.

This should be considered experimental.
2023-04-14 11:26:41 +02:00
..
coverage-calc Format Python scripts with yapf. 2021-11-24 23:13:24 +01:00
diff-canonifier Format shell scripts with shfmt. 2021-11-24 23:13:02 +01:00
diff-canonifier-external Provide infrastructure to migrate legacy analyzers to Spicy. 2023-02-01 11:33:48 +01:00
diff-clean-doctest Add testcases for plugin with doctest usage 2021-12-06 12:17:22 -08:00
diff-remove-abspath extend BTest "path" canonicalization to include compiled-to-C++ variable names 2023-03-08 10:19:21 +01:00
diff-remove-fields Format shell scripts with shfmt. 2021-11-24 23:13:02 +01:00
diff-remove-file-ids Improve a few test canonifiers 2015-09-19 18:08:31 -05:00
diff-remove-fractions Format shell scripts with shfmt. 2021-11-24 23:13:02 +01:00
diff-remove-openclose-timestamps Format shell scripts with shfmt. 2021-11-24 23:13:02 +01:00
diff-remove-spicy-abspath Provide infrastructure to migrate legacy analyzers to Spicy. 2023-02-01 11:33:48 +01:00
diff-remove-timestamps Format shell scripts with shfmt. 2021-11-24 23:13:02 +01:00
diff-remove-timestamps-and-sort Fix formatting 2022-04-27 23:02:27 +02:00
diff-remove-uids Improve a few test canonifiers 2015-09-19 18:08:31 -05:00
diff-remove-x509-key-info Adjust x509 unit tests to work around OpenSSL 1.0 vs. 1.1 differences 2018-06-29 16:01:23 -05:00
diff-remove-x509-names Merge remote-tracking branch 'origin/master' into topic/dnthayer/ticket1467 2015-10-02 11:31:00 -07:00
diff-sort Format shell scripts with shfmt. 2021-11-24 23:13:02 +01:00
diff-sort-and-remove-abspath baseline & btest updates 2022-05-26 17:39:47 -07:00
diff-sort-conn-service Extend external test suite canonifier with set-sorting logic 2020-08-11 11:26:21 -07:00
diff-sort-set-elements Extend external test suite canonifier with set-sorting logic 2020-08-11 11:26:21 -07:00
external-ca-list.zeek Use .zeek file suffix in unit tests 2019-04-16 16:08:57 -07:00
fake-sendmail Format shell scripts with shfmt. 2021-11-24 23:13:02 +01:00
file-analysis-test.zeek General btest cleanup 2020-08-11 11:26:22 -07:00
has-writer More bro-to-zeek renaming in the unit tests 2019-05-16 02:27:54 -05:00
have-af-packet Include in Jan's AF_PACKET plugin as builtin plugin 2022-10-13 13:29:27 +02:00
have-javascript Add experimental JavaScript support when libnode is available 2023-04-14 11:26:41 +02:00
have-spicy Provide infrastructure to migrate legacy analyzers to Spicy. 2023-02-01 11:33:48 +01:00
hilti-ignore-cxx-errors Deprecate bro_int_t and bro_uint_t 2022-07-12 12:01:23 -07:00
httpd.py Format Python scripts with yapf. 2021-11-24 23:13:24 +01:00
rst-filter Going over initial parts of the scripting overview. 2013-08-30 16:23:17 -07:00
snmp-test.zeek spelling: repetitions 2022-11-18 10:26:33 -05:00
update-external-repo-pointer.sh Format shell scripts with shfmt. 2021-11-24 23:13:02 +01:00
wait-for-file Format shell scripts with shfmt. 2021-11-24 23:13:02 +01:00