@anthor/toolbox
TypeScript icon, indicating that this package has built-in type declarations

0.8.2 • Public • Published

🧑‍🚀 Anthor Toolbox

This repo contains helpers for general development support.

🚀 Getting Started

Install with yarn.

yarn add @anthor/toolbox

Import any function or class from root toolbox package

import { LoggerFactory, generateCorrelationId } from '@anthor/toolbox'

const correlationId = generateCorrelationId()
const logger = LoggerFactory.create()

🧱 Components

Check the individual documentation for each library component.

Never do

Never try to import and use the implementations directly, always use the factory pattern to guarantee dependency inversion.

import { Logger, WinstonLogger } from '@anthor/toolbox/dist/services/logger/implementations/logger.winston.ts'

class StubClass {
  private _logger: Logger
  constructor(logger: WinstonLogger) {
    this._logger = logger
  }
}

/@anthor/toolbox/

    Package Sidebar

    Install

    npm i @anthor/toolbox

    Weekly Downloads

    26

    Version

    0.8.2

    License

    UNLICENSED

    Unpacked Size

    178 kB

    Total Files

    131

    Last publish

    Collaborators

    • developer-anthor