1.1.0 • Published 6 years ago

@gorillascript/register v1.1.0

Weekly downloads
2
License
ISC
Repository
gitlab
Last release
6 years ago

@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.gs

To 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
});
1.1.0

6 years ago

1.0.1

6 years ago