Stone.js API
    Preparing search index...
    • A Stone.js decorator that integrates the Node Cli Adapter with a class.

      This decorator modifies the class to seamlessly enable Node Cli as the execution environment for a Stone.js application. By applying this decorator, the class is automatically configured with the necessary blueprint for Node Cli.

      NB: This decorator is stubbed for browser environments compatibility and does not perform any actual functionality in the browser. It is intended for use in Node.js environments where the Node.js HTTP adapter is applicable.

      Type Parameters

      • T extends ClassType = ClassType

        The type of the class being decorated. Defaults to ClassType.

      Parameters

      • _options: NodeConsoleOptions = {}

        Optional configuration to customize the Node Cli Adapter.

      Returns ClassDecorator

      A class decorator that applies the Node Cli adapter configuration.

      import { NodeConsole } from '@stone-js/node-cli-adapter';

      @NodeConsole({
      alias: 'NodeConsole',
      })
      class App {
      // Your application logic here
      }