Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ayana/logger-api

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ayana/logger-api

Logger API for usage in libraries

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-70%
Maintainers
2
Weekly downloads
 
Created
Source

@ayana/logger-api NPM Discord Install size XO code style

Logger API for usage in libraries

What this is

This is a really small module defining the API of @ayana/logger for usage in libraries.

Why this exists

Some people who make a library might not want to force people to use @ayana/logger but still use it in their applications for logging. With @ayana/logger-api it is up to the user if he want's to use @ayana/logger or not. If the user doesn't install the @ayana/logger module themselves, libraries using @ayana/logger-api won't show any log output. However if the user does install it, the logging will work.

Technically the library user could just disable @ayana/logger but that is configuration effort and also leaves the module installed doing nothing and consuming disk space.

Installation

With NPM

npm i @ayana/logger-api

With Yarn

yarn add @ayana/logger-api

Usage

Look at the README of the main module for usage. Note that some features aren't available for libraries as it is an anti-pattern to access them.

GitLab repository

NPM package

License

Refer to the LICENSE file.

FAQs

Package last updated on 02 Feb 2019

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