Socket
Socket
Sign inDemoInstall

@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


Version published
Weekly downloads
0
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;
    prefix?: string | PrefixFunction;
    stderr?: boolean;
}

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

export = consoleLogLevel;

Additional Details

  • Last updated: Mon, 07 Jun 2021 19:31:27 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Ali Ijaz Sheikh.

FAQs

Package last updated on 07 Jun 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