{"_id":"inspect-with-kind","_rev":"9-2c36bdd01bd3da7f123fedcfaad12b41","name":"inspect-with-kind","description":"`util.inspect` with additional type information","dist-tags":{"latest":"1.0.5"},"versions":{"0.0.0":{"name":"inspect-with-kind","version":"0.0.0","description":"`util.inspect` with additional type information","repository":{"type":"git","url":"git+https://github.com/shinnn/inspect-with-kind.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"eslint --fix --format=codeframe index.js test.js","test":"nyc node --throw-deprecation test.js"},"license":"MIT","files":["index.js"],"keywords":["inspect","format","beautify","clarify","stringify","type","kind","append","additional","info","check"],"dependencies":{"kind-of":"^3.1.0"},"devDependencies":{"@shinnn/eslint-config-node":"^3.0.0","eslint":"^3.17.1","nyc":"^10.1.2","tape":"^4.6.3","zen-observable":"^0.4.0"},"eslintConfig":{"extends":"@shinnn/node"},"bugs":{"url":"https://github.com/shinnn/inspect-with-kind/issues"},"homepage":"https://github.com/shinnn/inspect-with-kind#readme","_id":"inspect-with-kind@0.0.0","_shasum":"381ae3df849251df41aa87550912ad1f49e34ed4","_from":".","_npmVersion":"4.3.0","_nodeVersion":"7.7.1","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"shasum":"381ae3df849251df41aa87550912ad1f49e34ed4","tarball":"https://registry.npmjs.org/inspect-with-kind/-/inspect-with-kind-0.0.0.tgz","integrity":"sha512-tfAtEPHXE/PggtTocWtQ02V3+vF/aYuX/t0uRLttTtfpaCEPIvwQYO7Ze6MT3bLS3nLICFrbSCtWnZOcph3YNQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRt1Hy1e55tPuG6NJyZrMYPlKS+C4NxrcJARnryckZZwIhAJKjMYWzuUK7CMIw70gze+kqnLMZgT3TQbVc3Tee++8u"}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/inspect-with-kind-0.0.0.tgz_1488976195364_0.49791808519512415"},"directories":{}},"1.0.0":{"name":"inspect-with-kind","version":"1.0.0","description":"`util.inspect` with additional type information","repository":{"type":"git","url":"git+https://github.com/shinnn/inspect-with-kind.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"eslint --fix --format=codeframe index.js test.js","test":"nyc node --throw-deprecation test.js"},"license":"MIT","files":["index.js"],"keywords":["inspect","format","beautify","clarify","stringify","type","kind","append","additional","info","check"],"dependencies":{"kind-of":"^3.1.0"},"devDependencies":{"@shinnn/eslint-config-node":"^3.0.0","eslint":"^3.17.1","nyc":"^10.1.2","tape":"^4.6.3","zen-observable":"^0.5.0"},"eslintConfig":{"extends":"@shinnn/node"},"gitHead":"2e92c767363b66e11dd2b4714b9089f051877718","bugs":{"url":"https://github.com/shinnn/inspect-with-kind/issues"},"homepage":"https://github.com/shinnn/inspect-with-kind#readme","_id":"inspect-with-kind@1.0.0","_shasum":"0cd47528a9b2529883ad961a975b7daa49aec655","_from":".","_npmVersion":"4.3.0","_nodeVersion":"7.7.2","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"shasum":"0cd47528a9b2529883ad961a975b7daa49aec655","tarball":"https://registry.npmjs.org/inspect-with-kind/-/inspect-with-kind-1.0.0.tgz","integrity":"sha512-NFUCRMAh1z+KA0o3nReINLQitrPwCK5PyaSZJEfU0fYsRZyE1ogeHVOq0TWu+Z97Ezvc79KGUuqnbtnKqtH7cA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB8qLceYvZHeFhH4GThXozUbGFdiUfCKhxbW3ORKn+HXAiEAtmZ1kRRwB+NbagyL9cOYaXgb1Vd5+yvb16mgyO7XPQk="}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/inspect-with-kind-1.0.0.tgz_1489043353457_0.49402170325629413"},"directories":{}},"1.0.1":{"name":"inspect-with-kind","version":"1.0.1","description":"`util.inspect` with additional type information","repository":{"type":"git","url":"git+https://github.com/shinnn/inspect-with-kind.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"eslint --fix --format=codeframe index.js test.js","test":"nyc node --throw-deprecation test.js"},"license":"MIT","files":["index.js"],"keywords":["inspect","format","beautify","clarify","stringify","type","kind","append","additional","info","check"],"dependencies":{"kind-of":"^4.0.0"},"devDependencies":{"@shinnn/eslint-config-node":"^3.0.0","eslint":"^3.19.0","nyc":"^10.3.2","tape":"^4.6.3","zen-observable":"^0.5.1"},"eslintConfig":{"extends":"@shinnn/node"},"gitHead":"52da928b63a7df0f7ffaf04b0b4a5a991489fc58","bugs":{"url":"https://github.com/shinnn/inspect-with-kind/issues"},"homepage":"https://github.com/shinnn/inspect-with-kind#readme","_id":"inspect-with-kind@1.0.1","_shasum":"948449b3c177ee6addf3b2d0a9635baf5a285da3","_from":".","_npmVersion":"4.6.1","_nodeVersion":"7.10.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"shasum":"948449b3c177ee6addf3b2d0a9635baf5a285da3","tarball":"https://registry.npmjs.org/inspect-with-kind/-/inspect-with-kind-1.0.1.tgz","integrity":"sha512-p35Y0xSYl/OevfdUxdWxTWrzpfXAFBUWONppT6EF//l6Z7HtiZRqtCqZpG+JQNC3JXo0iGTsg+aK8IOEI7peeA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDuodoE3Z/IV4tbmBe89/jrvGZDw6dL8+dBZbkpTZzcGAiB/FXgwzSoz015H+cYdiqWX8fC5Bod8BuMkr8J36YMn6A=="}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inspect-with-kind-1.0.1.tgz_1495438278174_0.7240728524047881"},"directories":{}},"1.0.2":{"name":"inspect-with-kind","version":"1.0.2","description":"`util.inspect` with additional type information","repository":{"type":"git","url":"git+https://github.com/shinnn/inspect-with-kind.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"eslint --format=codeframe index.js test.js","test":"nyc node --throw-deprecation test.js"},"license":"MIT","files":["index.js"],"keywords":["inspect","format","beautify","clarify","stringify","type","kind","append","additional","info","check"],"dependencies":{"kind-of":"^5.0.0"},"devDependencies":{"@shinnn/eslint-config-node":"^4.0.0","eslint":"^4.1.1","nyc":"^11.0.2","tape":"^4.6.3","zen-observable":"^0.5.2"},"eslintConfig":{"extends":"@shinnn/node"},"gitHead":"9ef20cab9cbaca7a8967a240f7121c5ab0ed60f8","bugs":{"url":"https://github.com/shinnn/inspect-with-kind/issues"},"homepage":"https://github.com/shinnn/inspect-with-kind#readme","_id":"inspect-with-kind@1.0.2","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"integrity":"sha512-xYPQvObjD6w2N5lkUbsm0++udR9Ch23acdeyhjqc4tmNm5BAKd6Su6g4ZhXH+OmvErtVG1OB66l/03Yp5KdFQg==","shasum":"40371e74c7fbb2c10a24cc22684f55878bfb6d92","tarball":"https://registry.npmjs.org/inspect-with-kind/-/inspect-with-kind-1.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCW6MO4JJRD01JPLmcgdikzKiu93NvDDQ9h6RRnD5PhuAIgZ41C8tP4HxjiXPGwTybcTl7AuC/QCyvQA0P9vmbqLW4="}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inspect-with-kind-1.0.2.tgz_1498459132949_0.622806126717478"},"directories":{}},"1.0.3":{"name":"inspect-with-kind","version":"1.0.3","description":"`util.inspect` with additional type information","repository":{"type":"git","url":"git+https://github.com/shinnn/inspect-with-kind.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"eslint --format=codeframe index.js test.js","test":"nyc node --throw-deprecation test.js"},"license":"ISC","files":["index.js"],"keywords":["inspect","format","beautify","clarify","stringify","type","kind","append","additional","info","check"],"dependencies":{"kind-of":"^6.0.0"},"devDependencies":{"@shinnn/eslint-config-node":"^4.0.2","eslint":"^4.9.0","nyc":"^11.2.1","tape":"^4.8.0","zen-observable":"^0.6.0"},"eslintConfig":{"extends":"@shinnn/node"},"gitHead":"fe1b1f7e9c2be2a6f085eccc20f4abcdadc92514","bugs":{"url":"https://github.com/shinnn/inspect-with-kind/issues"},"homepage":"https://github.com/shinnn/inspect-with-kind#readme","_id":"inspect-with-kind@1.0.3","_npmVersion":"5.5.1","_nodeVersion":"8.7.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"integrity":"sha512-JGcV2wVeLU3rt2atT/QdhEG32Ph5ucBvbBlGDi0aVERCbIFLMBjo5rfjsyGusJIYu7vYqKJqjf34sxJVcFLu2g==","shasum":"d8db6de617eb2f7223adb7f6f4db4f5e81fd538f","tarball":"https://registry.npmjs.org/inspect-with-kind/-/inspect-with-kind-1.0.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIESmgfTPNDqME5PQBiuUx80OvRnTQ8hks1HXEnqAGXf+AiEA/Xu7uzmgd5Yz4twRRd/IYLRfBF01XO/rjmOmYv2J3Tw="}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inspect-with-kind-1.0.3.tgz_1508237612115_0.18288412201218307"},"directories":{}},"1.0.4":{"name":"inspect-with-kind","version":"1.0.4","description":"`util.inspect` with additional type information","repository":{"type":"git","url":"git+https://github.com/shinnn/inspect-with-kind.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"eslint --fix --format=codeframe index.js test.js","test":"nyc node --throw-deprecation test.js"},"license":"ISC","files":["index.js"],"keywords":["inspect","format","beautify","clarify","stringify","type","kind","append","additional","info","check"],"dependencies":{"kind-of":"^6.0.2"},"devDependencies":{"@shinnn/eslint-config-node":"^5.0.0","eslint":"^4.13.1","nyc":"^11.4.0","tape":"^4.8.0","zen-observable":"^0.6.0"},"eslintConfig":{"extends":"@shinnn/node"},"gitHead":"290a96f129586f3b206dc87be5e0c258b46341c8","bugs":{"url":"https://github.com/shinnn/inspect-with-kind/issues"},"homepage":"https://github.com/shinnn/inspect-with-kind#readme","_id":"inspect-with-kind@1.0.4","_npmVersion":"5.6.0","_nodeVersion":"9.2.1","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"integrity":"sha512-KN8VFSf62Ig4hyXtXODkWF6PIatrCIJF32KY8tQUwwLtgfNsr+3ZIpd+epM+pRbC86nJZycBPjWwziDvn/+6YQ==","shasum":"4b325d5bf7ef8a6e186791795181c52fc9c5af01","tarball":"https://registry.npmjs.org/inspect-with-kind/-/inspect-with-kind-1.0.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMhfBpOoP4WrqM0NiPq3d3si6ISWTxVpZyM2nhjuk6TQIhAMQ+ekgqolkpxY3v9B3x2FNOJliunoaLNCyozKLfYHhu"}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inspect-with-kind-1.0.4.tgz_1513136213228_0.5112941260449588"},"directories":{}},"1.0.5":{"name":"inspect-with-kind","version":"1.0.5","description":"`util.inspect` with additional type information","repository":{"type":"git","url":"git+https://github.com/shinnn/inspect-with-kind.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"license":"ISC","scripts":{"pretest":"eslint .","test":"nyc --reporter=html --reporter=text node test.js"},"files":["index.js"],"keywords":["inspect","format","beautify","clarify","stringify","type","kind","append","additional","info","check"],"dependencies":{"kind-of":"^6.0.2"},"devDependencies":{"@shinnn/eslint-config-node":"^6.0.0","babel-eslint":"^9.0.0","eslint":"^5.4.0","nyc":"^13.0.1","tape":"^4.9.1","zen-observable":"^0.8.9"},"eslintConfig":{"extends":"@shinnn/node","parser":"babel-eslint"},"gitHead":"a20ebf53e8dba372c3e51fcb35c5e8269c12d50a","bugs":{"url":"https://github.com/shinnn/inspect-with-kind/issues"},"homepage":"https://github.com/shinnn/inspect-with-kind#readme","_id":"inspect-with-kind@1.0.5","_npmVersion":"6.4.0","_nodeVersion":"10.9.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"integrity":"sha512-MAQUJuIo7Xqk8EVNP+6d3CKq9c80hi4tjIbIAT6lmGW9W6WzlHiu9PS8uSuUYU+Do+j1baiFp3H25XEVxDIG2g==","shasum":"fce151d4ce89722c82ca8e9860bb96f9167c316c","tarball":"https://registry.npmjs.org/inspect-with-kind/-/inspect-with-kind-1.0.5.tgz","fileCount":4,"unpackedSize":4952,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbhLOrCRA9TVsSAnZWagAAQowQAJ0GjfOyslZnGlZzpW0J\n981J22eiIQg3gq9sgur87KvCkp/g9aDy4DmNMwJ8oW/g6+2Bsj7i7sTfe1Bh\nseDwlm3bJhtKelUjkb3hrvCdFJgD/ZcSKGE4TkqjJyZ16HvHWB3M7AgxB12x\nzzQjKNOMzqaAfEpb0Tlmwv54fbXNbfHlYH4oqUGXXAtprCrW9urROW+NoUb6\nlcZdUNhwrJ7SOz2gbVESivl7QAxCt5fmJTexD+52Nc/GM5SQru4XOLNDCS71\nQTAvWJNL4vCYy2kmhjqHYhM89XwICzW6ruHxwHJYzKXhK9tpJo5XKr5Xn7VX\nQXDHRHnP2so51sjwm8jSYw9tw0WPHCIW8v+08pC7h1+KGE0qot68HoflFiHY\nyKPVxyKHP7GvWmDd7rioS9y2B8R5Z0C4mNaP66kBcVjyOM1TdCNw/dstGSAt\nk6CBwV7W68xShns1iTXXxNRhPrvOY+9fuokgikh/E5I0iJQNhRpTbQJINxn4\nMNbLyBz0J01v+WCtBQygDi+G0pjwxl6vv+X7bLZl1akynWYvp7aFgQbRVwX7\n/fTMQ7Eh5/v/+h1OhnKV9/bdOK6vRmxD62+rXIGnHUOtaf7WEVO9/uRh380s\nUY0RVpsQ5aOKuFlo300ir2jQhf6vkyXmY22vymxfoN1bHoPpXE6OP6fEUQ/h\nHS7H\r\n=OGfA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFI3mJZ8pBdnfQWEqSVPYs5XQu0E0CK690N3qGoI07yaAiEA1G/vosm6PNidGsr5YPA15klTIAITUue4ExxWurRDl3k="}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inspect-with-kind_1.0.5_1535423402989_0.09815055460492772"},"_hasShrinkwrap":false}},"readme":"# inspect-with-kind\n\n[![npm version](https://img.shields.io/npm/v/inspect-with-kind.svg)](https://www.npmjs.com/package/inspect-with-kind)\n[![Build Status](https://travis-ci.org/shinnn/inspect-with-kind.svg?branch=master)](https://travis-ci.org/shinnn/inspect-with-kind)\n[![Coverage Status](https://img.shields.io/coveralls/shinnn/inspect-with-kind.svg)](https://coveralls.io/github/shinnn/inspect-with-kind?branch=master)\n\n[`util.inspect`][util.inspect] with additional type information\n\n```javascript\nconst {inspect} = require('util');\nconst inspectWithKind = require('inspect-with-kind');\n\ninspect([1, 2, 3]); //=> '[ 1, 2, 3 ]'\ninspectWithKind([1, 2, 3]); //=> '[ 1, 2, 3 ] (array)'\n```\n\n## Installation\n\n[Use npm.](https://docs.npmjs.com/cli/install)\n\n```\nnpm install inspect-with-kind\n```\n\n## API\n\n```javascript\nconst inspectWithKind = require('inspect-with-kind');\n```\n\n### inspectWithKind(*value* [, *options*])\n\n*value*: any type  \n*options*: `Object` ([`util.inspect`][util.inspect] options)  \nReturn: `string`\n\nAlmost the same as `util.inspect`, but:\n\n* It appends a type information to the string if the first argument is one of `boolean`, `string`, `number`, `bigint`, `Array`, `RegExp`, `Date`, `arguments` or a plain `Object`.\n* Error stack trace is omitted.\n* `breakLength` option defaults to `Infinity`.\n* `maxArrayLength` option defaults to `10`.\n\n```javascript\nconst util = require('util');\nconst inspectWithKind = require('inspect-with-kind');\n\n// appends type info\nutil.inspect(1); //=> '1'\ninspectWithKind(1); //=> '1 (number)'\nutil.inspect('1'); //=> '\\'1\\''\ninspectWithKind('1'); //=> '\\'1\\' (string)'\n\n// doesn't appends type info, because <Buffer ...> clearly expresses what it is\nutil.inspect(Buffer.from('1')); //=> '<Buffer 31>'\ninspectWithKind(Buffer.from('1')); //=> '<Buffer 31>'\n\n// omits stack trace\nutil.inspect(new Error('error!')); //=> 'Error: error!\\n    at repl:1:14\\n    at ContextifyScript ...'\ninspectWithKind(new Error('error!')); //=> 'Error: error!'\n```\n\n## Example\n\nThis module is useful for making `TypeError` error messages in your Node.js library.\n\n```javascript\nconst inspectWithKind = require('inspect-with-kind');\n\nmodule.exports = function reverse(v) {\n  if (typeof v !== 'boolean') {\n    throw new TypeError(`Expected a Boolean value, but got ${inspectWithKind(v)}.`);\n  }\n\n  return !v;\n};\n```\n\n```javascript\nconst reverse = require('./reverse.js');\n\nreverse(/true/); // TypeError: Expected a Boolean value, but got /true/ (regexp).\n```\n\n## License\n\n[ISC License](./LICENSE) © 2017 Shinnosuke Watanabe\n\n[util.inspect]: https://nodejs.org/api/util.html#util_util_inspect_object_options\n","maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"time":{"modified":"2022-06-19T01:32:53.408Z","created":"2017-03-08T12:29:57.231Z","0.0.0":"2017-03-08T12:29:57.231Z","1.0.0":"2017-03-09T07:09:15.277Z","1.0.1":"2017-05-22T07:31:18.287Z","1.0.2":"2017-06-26T06:38:53.056Z","1.0.3":"2017-10-17T10:53:32.260Z","1.0.4":"2017-12-13T03:36:53.362Z","1.0.5":"2018-08-28T02:30:03.073Z"},"homepage":"https://github.com/shinnn/inspect-with-kind#readme","keywords":["inspect","format","beautify","clarify","stringify","type","kind","append","additional","info","check"],"repository":{"type":"git","url":"git+https://github.com/shinnn/inspect-with-kind.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"bugs":{"url":"https://github.com/shinnn/inspect-with-kind/issues"},"license":"ISC","readmeFilename":"README.md"}