Socket
Book a DemoInstallSign in
Socket

@ilpt/systemic-ts-service-runner

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ilpt/systemic-ts-service-runner

Service runner for @ilpt/systemic-ts

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
126
48.24%
Maintainers
0
Weekly downloads
 
Created
Source

@ilpt/systemic-ts-service-runner

Runs @ilpt//systemic-ts systems

TL;DR

import { systemic } from '@ilpt/systemic-ts';
import { runner } from '@ilpt/systemic-ts-service-runner';

const system = systemic()
  .add('config', initConfig(), { scoped: true })
  .add('logger', initLogger()).dependsOn('config')
  .add('service', initService()).dependsOn('config', 'logger');

runner(system).start();

Installation

npm install @ilpt/systemic-ts-service-runner

Usage

import { runner } from '@ilpt/systemic-ts-service-runner';
import system from './system';
import emergencyLogger from './emergencyLogger';

runner(system, { logger: emergencyLogger }).start().then(components => {
    // Do something with the components
});

or with top level await:

import { runner } from '@ilpt/systemic-ts-service-runner';
import system from './system';
import emergencyLogger from './emergencyLogger';

const components = await runner(system, { logger: emergencyLogger }).start();
// Do something with the components

Keywords

systemic-ts

FAQs

Package last updated on 28 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts