1.0.1 • Published 2 years ago
sk-console v1.0.1
About The Package
The package contains nicely formatted console log functions
It can be used with ES5 and upper versions as well as with Typescript.
Installation
Follow the steps to install and configure the package.
npm install sk-consoleUsage
Import the package
If you use require for importing.
const SkConsole = require("sk-console").default;If you use import for importing.
import SkConsole from "sk-console";Log
SKConsole.log('Log');Output ◾ Log
Log Header
SKConsole.logHeader('Log Header');Output ◾ Log Header
Info
SKConsole.info('Info');Output ➡ Info
Info Header
SKConsole.infoHeader('Info Header');Output ➡ Info Header
Success
SKConsole.success('Success');Output ✔ Success
Success Header
SKConsole.successHeader('Success');Output ✔ Success Header
Error
SKConsole.error('Error');Output ✖ Error
Error Header
SKConsole.errorHeader('Error');Output ✖ Error Header
Warning
SKConsole.warning('Warning');Output ❇ Warning
Warning Header
SKConsole.warningHeader('Warning');Output ❇ Warning Header