Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

util.inspect() options maxArrayLength, breakLength #15

Open
mk-pmb opened this issue Jan 28, 2017 · 0 comments
Open

util.inspect() options maxArrayLength, breakLength #15

mk-pmb opened this issue Jan 28, 2017 · 0 comments

Comments

@mk-pmb
Copy link

mk-pmb commented Jan 28, 2017

Does anyone know a browser-compatible inspect module that supports them, or can add support for them here?

Using [email protected], Node.js v6.9.4, npm v3.10.10, Ubuntu 14.04.5 LTS trusty:

var nums = [ 1, 2, 3, 4, 5 ],
  opts = { depth: null, maxArrayLength: 2, breakLength: 2 };
console.log("node:", require("util").inspect(nums, opts));
console.log("util:", require("util/util.js").inspect(nums, opts));

prints:

node: [ 1,
  2,
  ... 3 more items ]
util: [ 1, 2, 3, 4, 5 ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant