Skip to content
/ dd Public

@mehasoft/dd is a debugging tool for Node.js, similar to Laravel's dd() function. It provides colorful and detailed console output to make error detection easier. npm

License

Notifications You must be signed in to change notification settings

mehasoft/dd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛠️ @mehasoft/dd

@mehasoft/dd is a debugging tool for Node.js, similar to Laravel's dd() function. It provides colorful and detailed console output to make error detection easier.

npm license


🚀 Installation

To add it to your Node.js project:

npm i -D @mehasoft/dd

📌 Usage (Es6)

import { dd } from "@mehasoft/dd";

const user = {
  name: "Mevlüt",
  age: 22,
  skills: ["JavaScript", "Node.js", "Laravel"]
};

dd(user); // Displays a formatted, colorized output and halts the process

📌 Usage (CommonJS)

const { dd } = require("@mehasoft/dd");

const user = {
  name: "Mevlüt",
  age: 22,
  skills: ["JavaScript", "Node.js", "Laravel"]
};

dd(user); // Displays a formatted, colorized output and halts the process

Alternatively, you can pass multiple arguments:

dd("An error occurred!", { errorCode: 500 }, ["Error details"]);

🎨 Example Output

You will see a colorized and formatted output in the console:

🛑 DEBUG DUMP
{
  name: 'Mevlüt',
  age: 22,
  skills: [ 'JavaScript', 'Node.js', 'Laravel' ]
}

📄 License

This project is licensed under the MIT License. For more details, please check the LICENSE file.

About

@mehasoft/dd is a debugging tool for Node.js, similar to Laravel's dd() function. It provides colorful and detailed console output to make error detection easier. npm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published