{"_id":"append-type","_rev":"7-039f707472099e5dd902a291b1e0da3c","name":"append-type","description":"Stringify the value with appending its type: 10 → '10 (number)'","dist-tags":{"latest":"1.0.2"},"versions":{"0.0.0":{"name":"append-type","version":"0.0.0","description":"Stringify the value with appending its type: 10 → '10 (number)'","repository":{"type":"git","url":"git+https://github.com/shinnn/append-type.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"prebuild":"eslint --fix module.js test.js","build":"rollup --config=node:module","pretest":"npm run-script build","test":"istanbul cover test.js"},"license":"MIT","module":"module.js","files":["index.js","module.js"],"keywords":["string","stringify","tostring","type","append","concat","join"],"devDependencies":{"@shinnn/eslint-config":"^3.3.0","eslint":"^3.7.1","istanbul":"^0.4.5","nop":"^1.0.0","rollup":"^0.36.3","rollup-config-module":"^1.0.0","tape":"^4.6.2"},"eslintConfig":{"extends":"@shinnn"},"bugs":{"url":"https://github.com/shinnn/append-type/issues"},"homepage":"https://github.com/shinnn/append-type#readme","_id":"append-type@0.0.0","_shasum":"18a91a730011131944746f415357e94506a10dc0","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.7.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"shasum":"18a91a730011131944746f415357e94506a10dc0","tarball":"https://registry.npmjs.org/append-type/-/append-type-0.0.0.tgz","integrity":"sha512-plok5G2vKJyMMlDaNQLM1rmNx2m5HJ9ecage9tFisvyOenXegYWxHSE0jpZITPy28x9oKcQ/fUVmHVlW6+VcnA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD69OCEw1mmQSE4FJotnZkx+j0HtXkIqJZzKc/PgkDhHAIhALmChvHlmg3i8b91Rc5k6adGquYOnJF9n3dFkLnc2n3V"}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/append-type-0.0.0.tgz_1476261235563_0.4683065270073712"},"directories":{}},"1.0.0":{"name":"append-type","version":"1.0.0","description":"Stringify the value with appending its type: 10 → '10 (number)'","repository":{"type":"git","url":"git+https://github.com/shinnn/append-type.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"prebuild":"eslint --fix module.js test.js","build":"rollup --config=node:module","pretest":"npm run-script build","test":"istanbul cover test.js"},"license":"MIT","module":"module.js","files":["index.js","module.js"],"keywords":["string","stringify","tostring","type","append","concat","join"],"devDependencies":{"@shinnn/eslint-config":"^3.3.0","eslint":"^3.7.1","istanbul":"^0.4.5","nop":"^1.0.0","rollup":"^0.36.3","rollup-config-module":"^1.0.0","tape":"^4.6.2"},"eslintConfig":{"extends":"@shinnn"},"gitHead":"b8ef996f4a2f24de6485025fbd9acdef7b1e5d0b","bugs":{"url":"https://github.com/shinnn/append-type/issues"},"homepage":"https://github.com/shinnn/append-type#readme","_id":"append-type@1.0.0","_shasum":"08f41db8423373865ecb2c2e0493987ee48e7a37","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.8.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"shasum":"08f41db8423373865ecb2c2e0493987ee48e7a37","tarball":"https://registry.npmjs.org/append-type/-/append-type-1.0.0.tgz","integrity":"sha512-r5aNbJXbLp4EmQqlZSP4azBsJxeDDmmaART79qqrlP1XFcC1bv3bqE6pNjQj09tBY87q4QD+N9gf5tZovli+LQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDyKGNCeFmzm04w1G5UgLfZCd1qxSmKSavUXATqXHU2BwIhAOKUP4yL7FcJ3pszN2MrjWtMR8OACfB8U+5s9J+JEIB/"}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/append-type-1.0.0.tgz_1476444239044_0.42701476626098156"},"directories":{}},"1.0.1":{"name":"append-type","version":"1.0.1","description":"Stringify the value with appending its type: 10 → '10 (number)'","repository":{"type":"git","url":"git+https://github.com/shinnn/append-type.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"prebuild":"eslint --ext=.js,.mjs --fix --format=codeframe .","build":"rollup --config=node:module","pretest":"npm run-script build","test":"istanbul cover test.js"},"license":"ISC","module":"index.mjs","files":["index.js","index.mjs"],"keywords":["string","stringify","tostring","type","append","concat","join"],"devDependencies":{"@shinnn/eslint-config":"^5.4.0","eslint":"^4.17.0","istanbul":"^0.4.5","nop":"^1.0.0","rollup":"^0.55.5","rollup-config-module":"^2.0.0","tape":"^4.8.0"},"eslintConfig":{"extends":"@shinnn"},"gitHead":"968ebe85aa6b136c9316c19b97237174c1a02507","bugs":{"url":"https://github.com/shinnn/append-type/issues"},"homepage":"https://github.com/shinnn/append-type#readme","_id":"append-type@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"integrity":"sha512-ro+W6UHJuoA2NXqKHug9bmXDbPB3eCALjcJOsYjgI9cz9cjLFthvincBCWjk25VFzJmIUHd8saOWZZBuMycXrg==","shasum":"e29a6eb22cec0c0b9b93063b3cf6b10d9e0c60f4","tarball":"https://registry.npmjs.org/append-type/-/append-type-1.0.1.tgz","fileCount":5,"unpackedSize":3827,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/zDhO8k1UQpNB99ELh0m4A4HEmNxno+GPjbHU55w5hwIgInx4tcrB2Sz61KT6RIe1IXDWOIqrRRfa+HkFuxxS/CQ="}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/append-type_1.0.1_1518576887254_0.8374438392063677"},"_hasShrinkwrap":false},"1.0.2":{"name":"append-type","version":"1.0.2","description":"Stringify the value with appending its type: 10 → '10 (number)'","author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"repository":{"type":"git","url":"git+https://github.com/shinnn/append-type.git"},"license":"MIT-0","module":"index.mjs","scripts":{"prebuild":"eslint .","build":"rollup --config=node:module","pretest":"npm run-script build","test":"nyc node test.js"},"keywords":["string","stringify","tostring","type","append","concat","join"],"devDependencies":{"@shinnn/eslint-config":"^6.8.6","eslint":"^5.10.0","lodash":"^4.17.11","nyc":"^13.1.0","nyc-config-common":"^1.0.1","rollup":"^0.67.4","rollup-config-module":"^2.0.2","tape":"^4.9.1"},"eslintConfig":{"extends":"@shinnn"},"nyc":{"extends":"nyc-config-common"},"gitHead":"d9da9845050202083b658ddc2b9f6b98f4bb8424","bugs":{"url":"https://github.com/shinnn/append-type/issues"},"homepage":"https://github.com/shinnn/append-type#readme","_id":"append-type@1.0.2","_nodeVersion":"11.6.0","_npmVersion":"6.6.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"dist":{"integrity":"sha512-hac740vT/SAbrFBLgLIWZqVT5PUAcGTWS5UkDDhr+OCizZSw90WKw6sWAEgGaYd2viIblggypMXwpjzHXOvAQg==","shasum":"a492f350e81ddcb46b787fc605becf6dd8bccbf6","tarball":"https://registry.npmjs.org/append-type/-/append-type-1.0.2.tgz","fileCount":5,"unpackedSize":3818,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcRwrOCRA9TVsSAnZWagAAobcQAKD/Ee02YU/1UZ5GnTuR\nOu/oCNFxqNcVP7vDOc6KHGbcJZyfnZuqwY6LgZAkobkl5xaLn9OrCxoio93C\nNTdh1nFZU6/oXMOLM2Ubuh4MEb4ZAo2gCOcZ5oHDD6COtBZe8lEosrSpursN\ne0urTdW4/oisNQ8Lu4B8yjWHKMJIhfzrxp3tm0ITibWnCxQ8w3nRc9G0tNPI\nXd/cyx8kf8XLMmK8Z5RY8qaS7Tqd3wD7+qdefSh4rdF55Vqx5ye8PxsTFGrN\nhF+5lVJpYNF/Fn+beGPTXM3ogYkgPK3DM86Vx5cWYrCApXCTQ+iq19lTTWqv\nyE2f29CeT656roqNtIuLBLPw3ml08ARRGNYCDZF+4FhxpsYvFNlA/cVe0qHH\n7LoObmLunkCVyLl6rD1woqCVpmZfXNWWg5y/VDDDfNWQis877HyIojNTZo7h\nrbk9y+BgAN10mFWrMbxFjhtsDritrhVcSDQSDUsyHhLjwqQzaDV72VTX1kS0\n8pbznWECHKISposDBoaUCzFs3BYr/DGiW7b8NkMo9LRG7CkDSycH1hVBqQNG\ndQ4s01Ktkh92/iCskXQl9rTUC0CZOM/+XAgaNOWCkdgXKpfLzHtl9Q8nokQv\npqBpR1fMq5wuw7ahtvTfWc66zII3B7n14Z55u8ETukhem+Y7jKNB1/RbKrQr\nwm5B\r\n=whzK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHPAONTJEOGHO3CUYrDDgSsPHCXiW1SeyJP/BI9XE3SKAiEAkzpMaZniggZeusvsk/Pb86JyiFRfZ+ingIFoWq72iQQ="}]},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/append-type_1.0.2_1548159693384_0.3807259136508938"},"_hasShrinkwrap":false}},"readme":"# append-type\n\n[![npm version](https://img.shields.io/npm/v/append-type.svg)](https://www.npmjs.com/package/append-type)\n[![Build Status](https://travis-ci.com/shinnn/append-type.svg?branch=master)](https://travis-ci.com/shinnn/append-type)\n[![Coverage Status](https://img.shields.io/coveralls/shinnn/append-type.svg)](https://coveralls.io/r/shinnn/append-type)\n\nStringify the value with appending its [type](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Operators/typeof): `10` → `'10 (number)'`\n\n```javascript\nimport appendType from 'append-type';\n\nappendType('123'); //=> '123 (string)'\nappendType(123); //=> '123 (number)'\n```\n\n## Installation\n\n[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/about-npm/).\n\n```\nnpm install append-type\n```\n\n## API\n\n```javascript\nimport appendType from 'append-type';\n```\n\n### appendType(*value*)\n\n*value*: any type  \nReturn: `string`\n\nEssentially, it returns `String(value) + ' (' + typeof value + ')'`.\n\n```javascript\nappendType(() => {}); //=> '() => {} (function)'\n```\n\nWhen it takes `null` / `undefined`, it returns `'null'` / `'undefined'`.\n\n```javascript\nappendType(null); //=> 'null'\nappendType(undefined); //=> 'undefined'\n```\n\n## Example\n\nThis module is useful for making `TypeError` error messages.\n\n```javascript\nfunction reverse(v) {\n  if (typeof v !== 'boolean') {\n    throw new TypeError(`Expected a Boolean value, but got ${appendType(v)}.`);\n  }\n\n  return !v;\n};\n\nreverse(1); //=> TypeError: Expected a Boolean value, but got 1 (number).\n```\n\n## License\n\n[MIT No Attribution](./LICENSE) © 2019 Shinnosuke Watanabe\n","maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"time":{"modified":"2022-06-13T03:17:39.814Z","created":"2016-10-12T08:33:57.387Z","0.0.0":"2016-10-12T08:33:57.387Z","1.0.0":"2016-10-14T11:24:01.184Z","1.0.1":"2018-02-14T02:54:47.352Z","1.0.2":"2019-01-22T12:21:33.494Z"},"homepage":"https://github.com/shinnn/append-type#readme","keywords":["string","stringify","tostring","type","append","concat","join"],"repository":{"type":"git","url":"git+https://github.com/shinnn/append-type.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"bugs":{"url":"https://github.com/shinnn/append-type/issues"},"license":"MIT-0","readmeFilename":"README.md"}