# debugger_js

> A library for debug logging in javascript

Latest version **1.0.8** (published 2017-07-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install debugger_js
pnpm add debugger_js
yarn add debugger_js
bun add debugger_js
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2017-07-25 |
| First published | 2017-07-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Matthew Fasman |
| Maintainers | mfasman95 |

## Links

- npm: https://www.npmjs.com/package/debugger_js
- Repository: https://github.com/mfasman95/debuggerjs
- Homepage: https://github.com/mfasman95/debuggerjs#readme
- Issues: https://github.com/mfasman95/debuggerjs/issues
- npm.io page: https://npm.io/package/debugger_js

## Recent versions

- 1.0.8 (latest) — 2017-07-25
- 1.0.7 — 2017-07-25
- 1.0.6 — 2017-07-25
- 1.0.5 — 2017-07-25
- 1.0.4 — 2017-07-25
- 1.0.3 — 2017-07-25
- 1.0.2 — 2017-07-25
- 1.0.1 — 2017-07-25
- 1.0.0 — 2017-07-25

## README

# debugger_js

A small utility library for logging front end javascript code.

<dl>
<dt><a href="#{logType} - A function to create a valid logType to be used when making a logger">{logType} - A function to create a valid logType to be used when making a logger(opts)</a></
dt>
<dd></dd>
<dt><a href="#{makeLogger} - A function to create a debug logger">{makeLogger} - A function to create a debug logger(opts)</a></dt>
<dd></dd>
</dl>

<a name="{logType} - A function to create a valid logType to be used when making a logger"></a>

## {logType} - A function to create a valid logType to be used when making a logger(opts)
**Kind**: global function

| Param | Type | Description |
| --- | --- | --- |
| opts | <code>object</code> | An object containg the possible options for this function |
| opts.logStyle | <code>string</code> | The style of logging this logType will generate. Possible values: log, warn, error, info. Default value: 'log' |
| opts.textColor | <code>string</code> | The text color this logType will generate. Default value: '#000' (Black) |
| opts.backgroundColor | <code>string</code> | The background color this logType will generate. Default value: '#fff' (white) |

<a name="{makeLogger} - A function to create a debug logger"></a>

## {makeLogger} - A function to create a debug logger(opts)
**Kind**: global function

| Param | Type | Description |
| --- | --- | --- |
| opts | <code>object</code> | An object containg the possible options for this function |
| opts.logTypes | <code>object</code> | A collection of logTypes created by the logType function |
| opts.debugModes | <code>string</code> | A collection of key value pairs where every key is a logType, and every value is a boolean whether or not that logType is being displayed. If no debugModes are provided, opts.logging will automatically be set to 'logNone'. |
| opts.logging | <code>string</code> | An optional parameter to set what will be logged. Possible values include 'logAll', 'logNone'. All other values will default to using the debugModes. logAll will log all debug messages, regardless of debugMode. logNone will log no debug messages, regardless of debugMode. |

---
_Source: https://npm.io/package/debugger_js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
