0.0.1 • Published 6 years ago

console-impl v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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)