Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Main

Nodehawk is a hyper configurable watcher for all of your Node server development needs.

example
import Nodehawk from 'nodehawk';
const nodehawk = new Nodehawk();

Hierarchy

Index

Constructors

Properties

Constructors

constructor

  • new Main(userConfig?: Config, watcherListeners?: WatcherListeners): Main
  • Create an instance of Nodehawk which reads the configuration file and spawns a watcher to execute commands.

    Parameters

    • Optional userConfig: Config
    • Optional watcherListeners: WatcherListeners

    Returns Main

Properties

Protected config

config: Config

The Config object provided to this instance.

Protected display

display: Display

The Display instance which allows displaying user configued messages.

Protected log

log: Logger

The Logger instance which allows various log types based on level.

Private watcher

watcher: Watcher

Instance of Watcher created for this instance.

Generated using TypeDoc