console-impl

0.0.1 • Public • Published

Console Implementation

This is an implementation of the Console API. It can be easily extended to allow for overriding of the no-operation methods into methods that are actually useful when using them with a library like Winston.

Installation

npm install --save console-impl

Usage

An example of a enter text field that alerts the user:

import ConsoleImpl from 'console-impl';

class MyConsole extends ConsoleImpl {
    log(statementToLog) {
        window.alert(statementToLog);
    }
}

Obviously, you can use this without the ES6 syntax and with a less annoying output.

Small Print

License

Material UI Submit Field is released under the MIT license.

Author

Mark Katerberg (@diablomarcus)

Readme

Keywords

Package Sidebar

Install

npm i console-impl

Weekly Downloads

2

Version

0.0.1

License

MIT

Last publish

Collaborators

  • katerberg