1.0.5 • Published 3 years ago

pnt-simple-debugger v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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

keytypedescription
textstringRequired. If variable is not used. It will give to the debug a custom title
variableanyRequired. If text is not used. It will log any variable
typedefault, success, warning, errorIt 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 />
}

Output

alt text

License

MIT

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago