2.0.1 • Published 3 months ago

@node-elion/builder-console-plugin v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

MIT License View this project on NPM View this project on NPM Known Vulnerabilities Quality Gate Status

@node-elion/builder-console-plugin

Ability to modify console output from app for projects, that based on @node-elion/builder

this package is part of the Elion project.

This package is a plugin and adds the ability to add prefixes and suffixes for console outputs in a project that is based on @node-elion/builder library.

Installation

Install @node-elion/builder-console-plugin with npm

This package is recommended to be installed as a dev dependency

npm i --save-dev @node-elion/builder-console-plugin

Usage

Update start and build commands to be able to use @node-elion/builder-console-plugin package:

/* package.json */
{
    /*...*/
    "scripts": {
        "start": "ebi start -p @node-elion/builder-console-plugin",
        "build": "ebi build -p @node-elion/builder-console-plugin"
    }
    /*...*/
}

Plugin configuration

Supported console types

typedescription
logconsole.log or console.info
warnconsole.warn
errorconsole.error
debugconsole.debug
timeconsole.time
timeLogconsole.timeLog
timeEndconsole.timeEnd
traceconsole.trace
parametertypedefaultdescription
prefixstringnullprefix string for console output; works for all types as fallback
suffixstringnullsuffix string for console output; works for all types as fallback
prefix-[type]stringnullprefix string for console output of specific type. For example, prefix-log will be used for console.log and console.info
suffix-[type]stringnullsuffix string for console output of specific type. For example, suffix-log will be used for console.log and console.info

Contributing

Contributions are always welcome!

See CONTRIBUTING.md for ways to get started.

License

MIT

2.0.1

3 months ago

2.0.0

6 months ago

1.0.1

11 months ago

0.0.1

11 months ago