@gorillascript/register
v1.1.0
Published
This package enables you to run GorillaScript directly without compiling.
Readme
@gorillascript/register
This package enables you to run GorillaScript directly without compiling.
To run a .gs file as an entrypoint:
node -r @gorillascript/register file.gsTo require a .gs file:
require("@gorillascript/register");
require("./file.gs");Custom options:
require("@gorillascript/register")({
gorillascript: require("@gorillascript/gorillascript"),
// see documenation at npmjs.com/package/pirates
exts: [".gs"], // array of extensions to hook
matcher: filename => true, // custom matcher function, works after the other two options
ignoreNodeModules: true // ignore node_modules directory
});