ziishaned / dumper.js Goto Github PK
View Code? Open in Web Editor NEWA better and pretty variable inspector for your Node.js applications
License: MIT License
A better and pretty variable inspector for your Node.js applications
License: MIT License
Hey,
Is there an option to remove the colors ?
I'd like to use it within the browser, in the Web Console. However the colors appear as the below:
�[1m�[30mobject�[39m�[22m (size=7) {
'listname' => �[36mstring�[39m �[31m"Assets"�[39m (length=6)
Thanks
Like this
const obj = { a: { b: { c: { d: { f: 0 } } } } };
dump(obj, { depth: 2 });
// shows { a: { b: { c: Object } } } <= where 'Object' is unexplored value, but type was specified
I am guessing you are (were) a Laravel dev, I always recreate this function in my various JS apps. Now I will just let this project do the job.
Thanks :-)
Like this
console.log(`My dump value is: ${dump(variable, { return: true })}`);
Unless perhaps there's a simpler solution elsewhere would be great to add source map support for increase transparency on logs, to avoid for
some-directory/.webpack/service/services/app-cron/handler.js:1:
where handler is the file that calls several additional functions from other files which are not listed.
Hi,
Thanks for making this handy module.
But something is unclear to me, how to use this in development vs production?
You advice to add this module to the dev dependencies.
But what happens in production where the dev modules are not available?
Wouldn't the code crash because the module cannot be found?
What would be the best way of handling this?
Cheers.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.