• Stars
    star
    2,759
  • Rank 15,930 (Top 0.4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 6 years ago
  • Updated 12 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A better and pretty variable inspector for your Node.js applications

Dumper.js - Dumps information about a variable
Dumper.js

Build Status Software License

Buy Me A  Coffee

dumper.js is a better and pretty variable inspector for your Node.js applications.

Installation

npm install --save-dev dumper.js
# or you may use yarn
yarn add dumper.js --dev

Usage

dd() Dump and Die

Calling dd() prints the output and kills the process

const { dd } = require('dumper.js');

const users = [
    { user: 'barney', age: 36, active: true, createdAt: new Date(), getAge: () => this.age },
    { user: 'fred', age: 40, active: false, createdAt: new Date(), getAge: () => this.age },
    { user: 'pebbles', age: 1, active: true, createdAt: new Date(), getAge: () => this.age }
];

dd(users);

// Above variable will be printed
console.log('this will never be called');

Will output below result and kill the process. Demo

dd

dump() Dump and Continue

Calling dump() prints the output and continues with the processing

const { dump } = require('dumper.js');

const users = [
    { user: 'barney', age: 36, active: true, createdAt: new Date(), getAge: () => this.age },
    { user: 'fred', age: 40, active: false, createdAt: new Date(), getAge: () => this.age },
    { user: 'pebbles', age: 1, active: true, createdAt: new Date(), getAge: () => this.age }
];

dump(users);

// Above variable will be printed and the process will continue
console.log('this will be called');

Will output below result and continue processing. Demo

dump

Contributions

Feel free to submit pull requests, create issues or spread the word.

License

MIT Β© Zeeshan Ahmad

More Repositories

1

learn-regex

Learn regex the easy way
45,192
star
2

opus

Open source knowledge base application for Teams
JavaScript
1,219
star
3

emoji-awesome

Cross platform, easy to use, no-javascript solution for the emoji awesomeness
CSS
326
star
4

dingo-project-management

A full-featured personal project management tool with task boards.
JavaScript
270
star
5

git-profile

Utility that helps you switch git configurations with ease.
PHP
235
star
6

snippetmaker-vscode

Easily make code snippets in VS Code
TypeScript
93
star
7

php-license

PHP library for generating and parsing license
PHP
85
star
8

git-semver

A CLI tool to generate semver compliant tags for your git repositories
PHP
81
star
9

deployer

Cross-platform application to deploy your applications through Jenkins.
JavaScript
69
star
10

instagrab

Instagrab - Easily grab or download Instagram content
PHP
65
star
11

inspector

PHP library that fetches the social accounts, website, name, photos, employment history and other details possible for the user by their email.
PHP
62
star
12

rest-api-example

RESTful Blog API in Lumen 5.2
PHP
58
star
13

jest-reporter-action

Comments a pull request with the jest code coverage
JavaScript
51
star
14

live-php

An integrated scratchpad for PHP
41
star
15

git-dld

Download files or folders from GitHub
TypeScript
40
star
16

livereload-vscode

LiveReload plugin for VS Code
JavaScript
33
star
17

emoji-clock

Get the emoji clock face for a given time.
Go
29
star
18

git-collab

Make co-authored commits on github
Shell
27
star
19

yell

PHP package to make your objects strict and throw exception when you try to access or set some undefined property in your objects.
PHP
20
star
20

alfred-google-hangouts

Alfred workflow which creates a Google Hangouts link and copy it inside your clipboard
16
star
21

remote-sql

πŸ”Œ Helps you to connect with remote Database sand apply queries on it.
PHP
10
star
22

ziishaned.github.io

The code/design in this repository is not allowed to be used in anyway.
SCSS
7
star
23

node-libcurl-docker

Super small Node.js container based on Alpine Linux OS
Dockerfile
4
star
24

steeef_improved

3
star
25

react-selectize-js

Light weight selectize.js component for react. http://ziishaned.info/react-selectize-js/
JavaScript
3
star
26

key-info

Get key code information
JavaScript
2
star
27

express-typescript-starter

TypeScript
2
star
28

multiple-mongodb-connection-example

Open multiple MongoDB connection in express.js app
JavaScript
2
star