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

@types/console-log-level

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/console-log-level

TypeScript definitions for console-log-level

  • 1.4.2
  • ts3.6
  • ts3.7
  • ts3.8
  • ts3.9
  • ts4.0
  • ts4.1
  • ts4.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
66K
decreased by-20.04%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install --save @types/console-log-level

Summary

This package contains type definitions for console-log-level (https://github.com/watson/console-log-level).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/console-log-level.

index.d.ts

// Type definitions for console-log-level 1.4
// Project: https://github.com/watson/console-log-level
// Definitions by: Ali Ijaz Sheikh <https://github.com/ofrobots>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

type PrefixFunction = (level: string) => string;

declare namespace consoleLogLevel {
    type LogLevelNames =
        "trace" | "debug" | "info" | "warn" | "error" | "fatal";
    type Logger = Record<LogLevelNames, (...args: any[]) => void>;
}

interface Options {
    level?: consoleLogLevel.LogLevelNames | undefined;
    prefix?: string | PrefixFunction | undefined;
    stderr?: boolean | undefined;
}

declare function consoleLogLevel(opts?: Options): consoleLogLevel.Logger;

export = consoleLogLevel;

Additional Details

  • Last updated: Tue, 06 Jul 2021 20:32:28 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Ali Ijaz Sheikh.

FAQs

Package last updated on 06 Jul 2021

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