New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@anthor/toolbox

Package Overview
Dependencies
Maintainers
4
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@anthor/toolbox

Tools to support general development purposes

  • 0.7.9
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
758
increased by98.95%
Maintainers
4
Weekly downloads
 
Created
Source

🧑‍🚀 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.

  • Logger
  • Utils
  • Errors

❌ 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
  }
}

FAQs

Package last updated on 08 Mar 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc