1.0.5 • Published 3 years ago
pnt-simple-debugger v1.0.5
Simple Debugger
That is a simple javascript console.log in a fancy way.
Installation
Install pnt-simple-debugger with npm
npm install pnt-simple-debugger --save-dev
//or
yarn add pnt-simple-debugger --dev
Instructions
For the moment the only available funciton is the debug
, which takes one required parameter, see options.
Options
key | type | description |
---|---|---|
text | string | Required. If variable is not used. It will give to the debug a custom title |
variable | any | Required. If text is not used. It will log any variable |
type | default, success, warning, error | It will set a different background and text color. Default value is default |
Usage/Examples
import { debug } from 'pnt-simple-debugger'
function App() {
const fakeData = useFakeData();
debug({text: 'hey should have data', variable: fakeData, type: 'success'})
return <Component />
}