JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 18
  • Score
    100M100P100Q55119F
  • License MIT

The reSolve framework's single NodeJS process runtime.

Package Exports

  • @resolve-js/runtime-single-process
  • @resolve-js/runtime-single-process/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@resolve-js/runtime-single-process) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@resolve-js/runtime-single-process

npm version

This package contains a runtime backend server that targets a standalone server or local machine.

Available Options

You can specify the following options to configure the runtime:

  • importMode- Specifies whether to use static or dynamic imports between the application's modules.
  • host - Specifies the network host on which to listen for connections. Defaults to '0.0.0.0'.
  • port - Specifies the server application's port.

Usage

// config.prod.js
const prodConfig = {
  runtime: {
    module: '@resolve-js/runtime-single-process',
    options: {
      host: declareRuntimeEnv('HOST', 'localhost'),
      port: declareRuntimeEnv('PORT', '3000'),
    },
  },
  ...
}

Analytics