{"_id":"0inspect","_rev":"2-93ee7e0a55f1dd219ffa756a11f45912","name":"0inspect","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"0inspect","version":"0.0.1","description":"Pretty string representation of object","main":"index.js","scripts":{"test":"nodemon ./test"},"keywords":["inspect","util","object","string","stringify","pretty","log","color"],"author":{"name":"Ambratolm","email":"ambratolm@gmail.com"},"license":"MIT","dependencies":{"chalk":"^4.1.2","check-types":"^11.1.2"},"devDependencies":{},"repository":{"type":"git","url":"git+https://github.com/simple-works/0inspect.git"},"bugs":{"url":"https://github.com/simple-works/0inspect/issues"},"homepage":"https://github.com/simple-works/0inspect#readme","gitHead":"f3d29a65c4ce1af9d833a6b20904fff14bdc3455","_id":"0inspect@0.0.1","_nodeVersion":"13.14.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-zsSM7/lnCnnMHlfBsFwWWSN6U5G2WGhh5GOo3KO7E5txntwrLfHmTWN6+O901Gy704aW0Y2GtuwwosL98aB+XQ==","shasum":"c39bd203b7ad82b818478fbbcd79914be09d9433","tarball":"https://registry.npmjs.org/0inspect/-/0inspect-0.0.1.tgz","fileCount":13,"unpackedSize":606779,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiQpm6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq0YA//YThN5MmApl2qcTEBqnneAaQD9XsEMWvMyapmaQdxEreRp/YI\r\nRsZAPUhxAWGJ9IBssfplllUJ+8rFAe9A3LF2E6fTbzEuS9EcACNLRe5OxuXd\r\nxWxmfWgj3W4v8ry26ZzKQTChpuse/maNrCS9w+Bw1kGKUu96W6srnrP5wpfn\r\n3cDrFvMfwqV94nTx/qV5L/g7+GH12X4RHL+mZVenM5um6BuZSHR7Xto+ARX1\r\ncb7KnId0tgb1Xij9C87kvMap4qUR8mhwOY9kmbTuqkDnw4qxi2u8udAiGGwh\r\nvK440ENtBs0TogAn5n5CCPqvRZXmaZ71fPJkXnW0XCudkdh/2dd8rFftv6tG\r\nEUE0dXvbwzf96xyf+xMPFfnU+mzctQHQUY6UGDZQshJqnFTpymJRX02FdX0r\r\noYWtT9rkHt6AHvGQRjS+5V/Ck8psVTyErNm40kiNVx7vAtJb7+iDlpNIxOZO\r\nmYS/dR/WDYLMBgYnnQq22EDq2kHK1DuB6rvje+pPrqUFw0GFEb9EY/Q1ho0E\r\nuziRDhKYqbDpMNqFAt+qY3FZaI+8Wnk9SB4Murp3RfcPY7kakFP4G7neqHNw\r\n5iy/dCyRb7T8TI2OFVaDIA2l6bEllFmLVZ+KyQu/Hmz3/PhRZlTS0xcBC4DJ\r\n1Zj7sPKEqmYpPeZyq/wM8r66s70IYC466kM=\r\n=MBzb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHGFGjBIYUvVZbC7/IOTiX1c+am6JL1gR+lXrp1OFSNbAiBvv2doEv2xUtSLgxzcM372Hm076yGDVLg4llnWpM7XIg=="}]},"_npmUser":{"name":"ambratolm","email":"ambratolm@gmail.com"},"directories":{},"maintainers":[{"name":"ambratolm","email":"ambratolm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/0inspect_0.0.1_1648531898484_0.07542957173644993"},"_hasShrinkwrap":false},"0.0.2":{"name":"0inspect","version":"0.0.2","description":"Pretty string representation of object","main":"index.js","scripts":{"test":"nodemon ./test"},"keywords":["inspect","util","object","string","stringify","pretty","log","color"],"author":{"name":"Ambratolm","email":"ambratolm@gmail.com"},"license":"MIT","dependencies":{"chalk":"^4.1.2","check-types":"^11.1.2"},"devDependencies":{},"repository":{"type":"git","url":"git+https://github.com/simple-works/0inspect.git"},"bugs":{"url":"https://github.com/simple-works/0inspect/issues"},"homepage":"https://github.com/simple-works/0inspect#readme","gitHead":"96d85a7ef2bab279cba788336e9fc0ba7262b567","_id":"0inspect@0.0.2","_nodeVersion":"13.14.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-TP5kfGAlZX6Wf6qMgmGMOB9eSuaqTbkgi77QJ22yMcXlwyiJaSsh6b+v80C7Oa/NFw6PNSmvt/s7eLeTsoXCWg==","shasum":"f068f61ed9372553728248e2d138e0304c8f47e7","tarball":"https://registry.npmjs.org/0inspect/-/0inspect-0.0.2.tgz","fileCount":13,"unpackedSize":607291,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGO1xhxHmMaya8hrkuIe79JzvzCLmokrr56vgHODJW/AAiASF35Yf2Lg9Mg4+TsI88EdtFmm3+aeI2W52O24yuSGAw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRnOEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmry0w/+JjwOrYxgok6aOu/nmV2t9u7uLRNbRkOb47ea5FpaMWJJKx4j\r\n2zEQiFzn3oqRZPpC0XQenOdb4TBERs1ax+Q7y4Gpcz0BDEyBG0Z9g2CP2m+y\r\nzXjXInYjUxfIR6rFpoEtKihDWnr4xw4Em+ngu1P9Jwsm89sBloYaL/xin2vw\r\nqcQch2xgW+36927u5XrQYlvUk/IGBbwsJEu8LxQFOo+DzP3yttFreahlOXPU\r\ngl1bBoX0fMHQMK/yHNLBP/+mvdCa5A0ndjn7R3Jhlvvl4ipwCEJ7JLtZ2Y+a\r\nVGulRZGEsll0yBJ/CdjO1ZJsVOFjxLcjmzIXvSSvI6o5m6k2/53mnZvyjJ+x\r\nhFm6NAWNAnGIGsqt5C44EwJg+1ct2TzltwNmO7piCQpvAh7EHZ8LrNyPj8Wr\r\n++sChfARy8nNFzE9hTJKsEnDy+VPQXV+m1ZJ+98yi6pzO8muyWwzKJevkltd\r\nzOLYIW4sCkhtKGivhcWKdYlGFtJ1VGp5RuG1SClGccbM1bH0jMds6ujvqTB3\r\nSpZRYdNR3ienYcV2/CbVeaou1qjOKEfJ/yHC1BYgfOOZJKGwOn1dWu8C/drG\r\nFxgSSrh3Uh/8kWzhPSxRsf4XElQmW8rmpnpG5rSkpXsTeZtaOTlToS3f3nZz\r\nMzyiCllURKMqcpEYW6/ZkJbIMj9DJtMktY4=\r\n=LvYq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ambratolm","email":"ambratolm@gmail.com"},"directories":{},"maintainers":[{"name":"ambratolm","email":"ambratolm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/0inspect_0.0.2_1648784260381_0.06725495166967144"},"_hasShrinkwrap":false}},"time":{"created":"2022-03-29T05:31:38.483Z","0.0.1":"2022-03-29T05:31:38.737Z","modified":"2022-04-04T10:08:43.967Z","0.0.2":"2022-04-01T03:37:40.633Z"},"maintainers":[{"name":"ambratolm","email":"ambratolm@gmail.com"}],"description":"Pretty string representation of object","homepage":"https://github.com/simple-works/0inspect#readme","keywords":["inspect","util","object","string","stringify","pretty","log","color"],"repository":{"type":"git","url":"git+https://github.com/simple-works/0inspect.git"},"author":{"name":"Ambratolm","email":"ambratolm@gmail.com"},"bugs":{"url":"https://github.com/simple-works/0inspect/issues"},"license":"MIT","readme":"# 👀 0inspect\r\n\r\n[![NPM version](https://badge.fury.io/js/0inspect.svg)](https://npmjs.org/package/0inspect)\r\n\r\nSimple utility for displaying a pretty eye-friendly colorful representation of an object for inspection purposes 👮.\r\n\r\n![Screenshot](./screenshot.jpg?raw=true)\r\n\r\n## 📥 Install\r\n\r\n```\r\nnpm i 0inspect\r\n```\r\n\r\n## 🏁 Use\r\n\r\n```js\r\nconst inspect = require(\"0inspect\");\r\n// or const { inspect, log } = require(\"0inspect\");\r\n\r\nconst objString = inspect(someObj);\r\nconsole.log(objString);\r\n\r\n// or shorter\r\ninspect.log(someObj);\r\n```\r\n\r\n## 📕 API\r\n\r\n`inspect(obj?: Any, options?: Object);`\r\n\r\n- `obj: Any`: Object to inspect.\r\n- `options: Object`: Options object.\r\n  - `depth: Number`: Object nesting depth. _Default: `10`_.\r\n\r\n`inspect.log(obj?: Any, options?: Object);`\r\n\r\n- Just a wrapper for `console.log(inspect(obj, options))`.\r\n\r\n## 🎨 Colors\r\n\r\n| Color   | Meaning          |\r\n| ------- | ---------------- |\r\n| Green   | Truthy Primitive |\r\n| Red     | Falsy Primitive  |\r\n| Cyan    | Full Object      |\r\n| Yellow  | Empty Object     |\r\n| Magenta | Function         |\r\n\r\nAs this is using [Chalk](https://github.com/chalk) for console colors, the color support control is automatic, but you can still override it this way:\r\n\r\n```js\r\nconst chalk = require(\"chalk\"); // Chalk v4.1.2\r\nchalk.level = 0; // No color\r\n```\r\n\r\n💡 See: [chalk # chalk.level](https://github.com/chalk/chalk#chalklevel)\r\n\r\n## 🔣 Symbols\r\n\r\n| Symbol | Meaning          |\r\n| ------ | ---------------- |\r\n| ◆      | Truthy Primitive |\r\n| ◇      | Falsy Primitive  |\r\n| ●      | Full Object      |\r\n| ○      | Empty Object     |\r\n| ◉      | Function         |\r\n| Ø      | No Class         |\r\n| →      | Value            |\r\n\r\n## 💠 Examples\r\n\r\n| Input       | Category         | Output                       | Output Color |\r\n| ----------- | ---------------- | ---------------------------- | ------------ |\r\n| `1n`        | Truthy Primitive | `◆ BigInt → 1`               | Green        |\r\n| `NaN`       | Falsy Primitive  | `◇ Number → NaN`             | Red          |\r\n| `undefined` | Falsy Primitive  | `◇ Ø → undefined`            | Red          |\r\n| `{ a:\"\" }`  | Full Object      | `● Object → {1}`             | Cyan         |\r\n| `{}`        | Empty Object     | `○ Object → {}`              | Yellow       |\r\n| `() => \"\"`  | Function         | `◉ Function → (anonymous)()` | Magenta      |\r\n\r\n# 📃 License\r\n\r\n[MIT](./LICENSE) © [Ambratolm](https://github.com/Ambratolm)\r\n","readmeFilename":"README.md"}