@types/npmlog

  • Version 4.1.3
  • Published
  • 5.52 kB
  • No dependencies
  • MIT license

Install

npm i @types/npmlog
yarn add @types/npmlog
pnpm add @types/npmlog

Overview

TypeScript definitions for npmlog

Index

Variables

variable npmlog

var npmlog: npmlog.Logger;

    Interfaces

    interface Logger

    interface Logger extends EventEmitter {}

      property heading

      heading: string;

        property headingStyle

        headingStyle: StyleObject;

          property level

          level: string;

            property maxRecordSize

            maxRecordSize: number;

              property prefixStyle

              prefixStyle: StyleObject;

                property record

                record: MessageObject[];

                  property stream

                  stream: any;

                    method addLevel

                    addLevel: (level: string, n: number, style?: StyleObject, disp?: string) => void;

                      method disableColor

                      disableColor: () => void;

                        method disableProgress

                        disableProgress: () => void;

                          method disableUnicode

                          disableUnicode: () => void;

                            method enableColor

                            enableColor: () => void;

                              method enableProgress

                              enableProgress: () => void;

                                method enableUnicode

                                enableUnicode: () => void;

                                  method error

                                  error: (prefix: string, message: string, ...args: any[]) => void;

                                    method http

                                    http: (prefix: string, message: string, ...args: any[]) => void;

                                      method info

                                      info: (prefix: string, message: string, ...args: any[]) => void;

                                        method log

                                        log: (
                                        level: LogLevels | string,
                                        prefix: string,
                                        message: string,
                                        ...args: any[]
                                        ) => void;

                                          method notice

                                          notice: (prefix: string, message: string, ...args: any[]) => void;

                                            method pause

                                            pause: () => void;

                                              method progressEnabled

                                              progressEnabled: () => boolean;

                                                method resume

                                                resume: () => void;

                                                  method silent

                                                  silent: (prefix: string, message: string, ...args: any[]) => void;

                                                    method silly

                                                    silly: (prefix: string, message: string, ...args: any[]) => void;

                                                      method timing

                                                      timing: (prefix: string, message: string, ...args: any[]) => void;

                                                        method verbose

                                                        verbose: (prefix: string, message: string, ...args: any[]) => void;

                                                          method warn

                                                          warn: (prefix: string, message: string, ...args: any[]) => void;

                                                            call signature

                                                            (): any;

                                                              index signature

                                                              [key: string]: any;

                                                                interface MessageObject

                                                                interface MessageObject {}

                                                                  property id

                                                                  id: number;

                                                                    property level

                                                                    level: string;

                                                                      property message

                                                                      message: string;

                                                                        property messageRaw

                                                                        messageRaw: string;

                                                                          property prefix

                                                                          prefix: string;

                                                                            interface StyleObject

                                                                            interface StyleObject {}

                                                                              property bell

                                                                              bell?: boolean | undefined;

                                                                                property bg

                                                                                bg?: string | undefined;

                                                                                  property bold

                                                                                  bold?: boolean | undefined;

                                                                                    property fg

                                                                                    fg?: string | undefined;

                                                                                      property inverse

                                                                                      inverse?: boolean | undefined;

                                                                                        property underline

                                                                                        underline?: boolean | undefined;

                                                                                          Type Aliases

                                                                                          type LogLevels

                                                                                          type LogLevels =
                                                                                          | 'silly'
                                                                                          | 'verbose'
                                                                                          | 'info'
                                                                                          | 'timing'
                                                                                          | 'http'
                                                                                          | 'notice'
                                                                                          | 'warn'
                                                                                          | 'error'
                                                                                          | 'silent';

                                                                                            Package Files (1)

                                                                                            Dependencies (0)

                                                                                            No dependencies.

                                                                                            Dev Dependencies (0)

                                                                                            No dev dependencies.

                                                                                            Peer Dependencies (0)

                                                                                            No peer dependencies.

                                                                                            Badge

                                                                                            To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                                                                            You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/npmlog.

                                                                                            • Markdown
                                                                                              [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/npmlog)
                                                                                            • HTML
                                                                                              <a href="https://www.jsdocs.io/package/@types/npmlog"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>