Skip to main content

Using Plugins

It is possible to extend the functionality of v8r by installing plugins.

Plugins can be packages installed from a registry like npm or jsr or local files in your repo.

Plugins must be specified in a config file. They can't be loaded using command line arguments.

.v8rrc.yml
plugins:
# Plugins installed from NPM (or JSR) must be prefixed by "package:"
- "package:v8r-plugin-emoji-output"
# Plugins in the project dir must be prefixed by "file:"
- "file:./subdir/my-local-plugin.mjs"

Plugins are invoked one at a time in the order they are specified in your config file.