2.0.1 • Published 1 year ago

giveit v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

giveit

Debug with ease any nested objects, arrays, etc. giveit is a JSON.stringify wrapper to display nested objects with indentation & color for quick debugging

Installation

npm install giveit

Usage

import { giveit } from "giveit";

const arrObj = [
  {
    name: "John Doe",
    age: 30,
    city: "New York",
    hobbies: ["reading", "cooking"],
    married: false,
    address: {
      street: "123 Main St",
      zip: 12345,
    },
  },
];

// give it! giveit() will nicely show arrObj
console.log("See nested values of arrObj", giveit(arrObj));

Example of showing nested objects

Author

Pierre-Henry Soria ツ – A super passionate and enthusiastic Problem-Solver / Senior Software Engineer living currently in Sydney 🦘

Also, a true cheese 🧀, ristretto ☕️, and dark chocolate lover! 😋 👉 Reach me on LinkedIn ⚡️

License

Distributed under the MIT 🎉 Enjoy!

2.0.1

1 year ago

2.0.0

1 year ago

1.0.1

1 year ago