Newline Proliferating Maniac

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

    0.7.6 • 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
      }
    }

    Keywords

    none

    Install

    npm i @anthor/toolbox

    DownloadsWeekly Downloads

    4,633

    Version

    0.7.6

    License

    UNLICENSED

    Unpacked Size

    175 kB

    Total Files

    131

    Last publish

    Collaborators

    • wmenegali
    • zeowna
    • vytorcalixto
    • brunocapri