{"name":"object-inspect","version":"1.13.4","keywords":["inspect","util.inspect","object","stringify","pretty"],"author":{"url":"http://substack.net","name":"James Halliday","email":"mail@substack.net"},"license":"MIT","_id":"object-inspect@1.13.4","maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"},{"name":"emilbayes","email":"github@tixz.dk"}],"homepage":"https://github.com/inspect-js/object-inspect","bugs":{"url":"https://github.com/inspect-js/object-inspect/issues"},"dist":{"shasum":"8375265e21bc20d0fa582c22e1b13485d6e00213","tarball":"http://registry-npm.ywwl.com/object-inspect/download/object-inspect-1.13.4.tgz","fileCount":34,"integrity":"sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==","signatures":[{"sig":"MEYCIQDmWRl2Pr+NvTG0wMeED1kG9FCJlgPGJHqlz/dPa6LWHQIhALxOZiTuPsDFuDcUfcBlVhCWbqD8EYMlL32qytNN0RDt","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":102920,"size":28026,"noattachment":false,"key":"/object-inspect/-/object-inspect-1.13.4.tgz"},"main":"index.js","browser":{"./util.inspect.js":false},"engines":{"node":">= 0.4"},"funding":{"url":"https://github.com/sponsors/ljharb"},"gitHead":"21bdaa07377a2d605ba78c774f4aa0381daf0425","scripts":{"lint":"eslint --ext=js,mjs .","test":"npm run tests-only && npm run test:corejs","prepack":"npmignore --auto --commentLines=autogenerated","pretest":"npm run lint","version":"auto-changelog && git add CHANGELOG.md","postlint":"npx @pkgjs/support validate","posttest":"npx npm@'>=10.2' audit --production","prepublish":"not-in-publish || npm run prepublishOnly","tests-only":"nyc tape 'test/*.js'","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"","test:corejs":"nyc tape test-core-js.js 'test/*.js'","prepublishOnly":"safe-publish-latest"},"support":true,"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"testling":{"files":["test/*.js","test/browser/*.js"],"browsers":["ie/6..latest","chrome/latest","firefox/latest","safari/latest","opera/latest","iphone/latest","ipad/latest","android/latest"]},"repository":{"url":"git://github.com/inspect-js/object-inspect.git","type":"git"},"_npmVersion":"10.9.2","description":"string representations of objects in node and the browser","directories":{},"sideEffects":false,"_nodeVersion":"23.6.1","publishConfig":{"ignore":[".github/workflows","./test-core-js.js"]},"_hasShrinkwrap":false,"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","hideCredit":true,"unreleased":false,"commitLimit":false,"backfillLimit":false},"devDependencies":{"nyc":"^10.3.2","glob":"=10.3.7","tape":"^5.9.0","eslint":"=8.8.0","semver":"^6.3.1","core-js":"^2.6.12","for-each":"^0.3.4","jackspeak":"=2.1.1","npmignore":"^0.3.1","globalthis":"^1.0.4","in-publish":"^2.0.1","error-cause":"^1.0.8","has-symbols":"^1.1.0","safer-buffer":"^2.1.2","mock-property":"^1.1.0","@pkgjs/support":"^0.0.6","auto-changelog":"^2.5.0","has-tostringtag":"^1.0.2","es-value-fixtures":"^1.7.1","make-arrow-function":"^1.2.0","safe-publish-latest":"^2.0.0","functions-have-names":"^1.2.3","@ljharb/eslint-config":"^21.1.1","string.prototype.repeat":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/object-inspect_1.13.4_1738718770027_0.20409612893504492","host":"s3://npm-registry-packages-npm-production"},"readme":"# object-inspect <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\nstring representations of objects in node and the browser\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\n# example\n\n## circular\n\n``` js\nvar inspect = require('object-inspect');\nvar obj = { a: 1, b: [3,4] };\nobj.c = obj;\nconsole.log(inspect(obj));\n```\n\n## dom element\n\n``` js\nvar inspect = require('object-inspect');\n\nvar d = document.createElement('div');\nd.setAttribute('id', 'beep');\nd.innerHTML = '<b>wooo</b><i>iiiii</i>';\n\nconsole.log(inspect([ d, { a: 3, b : 4, c: [5,6,[7,[8,[9]]]] } ]));\n```\n\noutput:\n\n```\n[ <div id=\"beep\">...</div>, { a: 3, b: 4, c: [ 5, 6, [ 7, [ 8, [ ... ] ] ] ] } ]\n```\n\n# methods\n\n``` js\nvar inspect = require('object-inspect')\n```\n\n## var s = inspect(obj, opts={})\n\nReturn a string `s` with the string representation of `obj` up to a depth of `opts.depth`.\n\nAdditional options:\n  - `quoteStyle`: must be \"single\" or \"double\", if present. Default `'single'` for strings, `'double'` for HTML elements.\n  - `maxStringLength`: must be `0`, a positive integer, `Infinity`, or `null`, if present. Default `Infinity`.\n  - `customInspect`: When `true`, a custom inspect method function will be invoked (either undere the `util.inspect.custom` symbol, or the `inspect` property). When the string `'symbol'`, only the symbol method will be invoked. Default `true`.\n  - `indent`: must be \"\\t\", `null`, or a positive integer. Default `null`.\n  - `numericSeparator`: must be a boolean, if present. Default `false`. If `true`, all numbers will be printed with numeric separators (eg, `1234.5678` will be printed as `'1_234.567_8'`)\n\n# install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install object-inspect\n```\n\n# license\n\nMIT\n\n[package-url]: https://npmjs.org/package/object-inspect\n[npm-version-svg]: https://versionbadg.es/inspect-js/object-inspect.svg\n[deps-svg]: https://david-dm.org/inspect-js/object-inspect.svg\n[deps-url]: https://david-dm.org/inspect-js/object-inspect\n[dev-deps-svg]: https://david-dm.org/inspect-js/object-inspect/dev-status.svg\n[dev-deps-url]: https://david-dm.org/inspect-js/object-inspect#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/object-inspect.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/object-inspect.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/object-inspect.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=object-inspect\n[codecov-image]: https://codecov.io/gh/inspect-js/object-inspect/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/inspect-js/object-inspect/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/object-inspect\n[actions-url]: https://github.com/inspect-js/object-inspect/actions\n","publish_time":1738718770272,"_cnpm_publish_time":1738718770272,"dist-tags":{"latest":"1.14.0"}}