@gorillascript/register

1.1.0 • Public • Published

@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
});

/@gorillascript/register/

    Package Sidebar

    Install

    npm i @gorillascript/register

    Weekly Downloads

    1

    Version

    1.1.0

    License

    ISC

    Unpacked Size

    2.58 kB

    Total Files

    5

    Last publish

    Collaborators

    • budden
    • ikorolev