demo___customer_pitch-c4152739-a50b-4b5b-9d4d-0561461666d9.zip-extract/_dependencies/npm/object-inspect-1.13.4/readme.markdown

Path
demo___customer_pitch-c4152739-a50b-4b5b-9d4d-0561461666d9.zip-extract/_dependencies/npm/object-inspect-1.13.4/readme.markdown
Status
scanned
Type
file
Name
readme.markdown
Extension
.markdown
Programming language

      
    
Mime type
text/plain
File type
ASCII text
Tag

      
    
Rootfs path

      
    
Size
2988 (2.9 KB)
MD5
a52faa248a62db9828782cb2b2a73903
SHA1
8b279d401cf0646f30c0c48c476679e9abb19749
SHA256
3a99acaa394dea033e3feda3ca2bbed56d76cd80a055005156c38c1c225bd601
SHA512

      
    
SHA1_git
f91617df32a3c8b9ffa23300ad26ca918bca13aa
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
readme.markdown | 2.9 KB |

# object-inspect <sup>[![Version Badge][npm-version-svg]][package-url]</sup> string representations of objects in node and the browser [![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url] [![npm badge][npm-badge-png]][package-url] # example ## circular ``` js var inspect = require('object-inspect'); var obj = { a: 1, b: [3,4] }; obj.c = obj; console.log(inspect(obj)); ``` ## dom element ``` js var inspect = require('object-inspect'); var d = document.createElement('div'); d.setAttribute('id', 'beep'); d.innerHTML = '<b>wooo</b><i>iiiii</i>'; console.log(inspect([ d, { a: 3, b : 4, c: [5,6,[7,[8,[9]]]] } ])); ``` output: ``` [ <div id="beep">...</div>, { a: 3, b: 4, c: [ 5, 6, [ 7, [ 8, [ ... ] ] ] ] } ] ``` # methods ``` js var inspect = require('object-inspect') ``` ## var s = inspect(obj, opts={}) Return a string `s` with the string representation of `obj` up to a depth of `opts.depth`. Additional options: - `quoteStyle`: must be "single" or "double", if present. Default `'single'` for strings, `'double'` for HTML elements. - `maxStringLength`: must be `0`, a positive integer, `Infinity`, or `null`, if present. Default `Infinity`. - `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`. - `indent`: must be "\t", `null`, or a positive integer. Default `null`. - `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'`) # install With [npm](https://npmjs.org) do: ``` npm install object-inspect ``` # license MIT [package-url]: https://npmjs.org/package/object-inspect [npm-version-svg]: https://versionbadg.es/inspect-js/object-inspect.svg [deps-svg]: https://david-dm.org/inspect-js/object-inspect.svg [deps-url]: https://david-dm.org/inspect-js/object-inspect [dev-deps-svg]: https://david-dm.org/inspect-js/object-inspect/dev-status.svg [dev-deps-url]: https://david-dm.org/inspect-js/object-inspect#info=devDependencies [npm-badge-png]: https://nodei.co/npm/object-inspect.png?downloads=true&stars=true [license-image]: https://img.shields.io/npm/l/object-inspect.svg [license-url]: LICENSE [downloads-image]: https://img.shields.io/npm/dm/object-inspect.svg [downloads-url]: https://npm-stat.com/charts.html?package=object-inspect [codecov-image]: https://codecov.io/gh/inspect-js/object-inspect/branch/main/graphs/badge.svg [codecov-url]: https://app.codecov.io/gh/inspect-js/object-inspect/ [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/object-inspect [actions-url]: https://github.com/inspect-js/object-inspect/actions
Detected license expression
mit
Detected license expression (SPDX)
MIT
Percentage of license text
0.47
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
mit-3fce6ea2-8abd-6c6b-3ede-a37af7c6efee mit MIT
URL Start line End line
https://npmjs.org/ 60 60
https://npmjs.org/package/object-inspect 70 70
https://versionbadg.es/inspect-js/object-inspect.svg 71 71
https://david-dm.org/inspect-js/object-inspect.svg 72 72
https://david-dm.org/inspect-js/object-inspect 73 73
https://david-dm.org/inspect-js/object-inspect/dev-status.svg 74 74
https://david-dm.org/inspect-js/object-inspect#info=devDependencies 75 75
https://nodei.co/npm/object-inspect.png?downloads=true&stars=true 76 76
https://img.shields.io/npm/l/object-inspect.svg 77 77
https://img.shields.io/npm/dm/object-inspect.svg 79 79
https://npm-stat.com/charts.html?package=object-inspect 80 80
https://codecov.io/gh/inspect-js/object-inspect/branch/main/graphs/badge.svg 81 81
https://app.codecov.io/gh/inspect-js/object-inspect/ 82 82
https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/object-inspect 83 83
https://github.com/inspect-js/object-inspect/actions 84 84
Package URL License Primary language
pkg:npm/acme-demo-app@1.0.0 JavaScript
pkg:npm/object-inspect@1.13.4 mit JavaScript