# console-dumper

> For writing to console

Latest version **1.0.4** (published 2018-09-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install console-dumper
pnpm add console-dumper
yarn add console-dumper
bun add console-dumper
```

## 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.4 |
| Published | 2018-09-07 |
| First published | 2018-09-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Mustafa Karahan |
| Maintainers | mustafakarahan |
| Keywords | console, dump, dumper |

## Links

- npm: https://www.npmjs.com/package/console-dumper
- Repository: https://github.com/mustaabey/console-dumper
- Homepage: https://github.com/mustaabey/console-dumper#readme
- Issues: https://github.com/mustaabey/console-dumper/issues
- npm.io page: https://npm.io/package/console-dumper

## Recent versions

- 1.0.4 (latest) — 2018-09-07

## README

console-dumper
===========

## Example

```javascript
    var Dumper = require("console-dumper");

    var dumper = new Dumper();

    dumper.init();

    var str = "Foo";

    str.Dump();     //Foo

    var obj = {
        something:5
    };

    obj.Dump();     //{"something":5}

    var arr = [1,2,3];

    arr.Dump();     //1,2,3

    var simpleFunction = function() {

        return 5;
    };

    simpleFunction.Dump();  //function () { return 5; }
```

## With Configuration

```javascript
    var Dumper = require("console-dumper");

    var dumper = new Dumper();

    dumper.init({
        DumperFuncName: "PrintToConsole",
        Prefix: "Prefix ",
        Postfix: "\nPostFix"
    });

    var str = "Foo";

    str.PrintToConsole();               //Prefix Foo
                                        //PostFix

    var obj = {
        something:5
    };

    obj.PrintToConsole();               //Prefix {"something":5}
                                        //PostFix

    var arr = [1,2,3];

    arr.PrintToConsole();               //Prefix 1,2,3
                                        //PostFix

    var simpleFunction = function() {

        return 5;
    };

    simpleFunction.PrintToConsole();    //Prefix function () {
                                        //
                                        //return 5;
                                        //}
                                        //PostFix
```

## With Args

```javascript
    var Dumper = require("console-dumper");

    var dumper = new Dumper();

    dumper.init();

    var str = "Foo";

    str.Dump("Hey",1);     //Foo Hey 1
```

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