{"_id":"type","_rev":"3464119","name":"type","description":"Runtime validation and processing of JavaScript types","dist-tags":{"latest":"2.7.3"},"maintainers":[{"name":"medikoo","email":""}],"time":{"modified":"2024-08-27T19:36:54.000Z","created":"2011-06-09T23:12:25.475Z","2.7.3":"2024-05-30T19:11:38.494Z","2.7.2":"2022-08-05T14:14:18.522Z","2.7.1":"2022-08-04T18:50:44.976Z","2.7.0":"2022-08-03T18:39:02.710Z","2.6.1":"2022-07-29T13:17:56.611Z","2.6.0":"2022-02-02T15:21:51.930Z","2.5.0":"2021-03-08T14:57:13.638Z","2.4.0":"2021-03-08T14:27:12.143Z","2.3.0":"2021-02-16T13:04:56.970Z","2.2.0":"2021-02-11T15:16:59.159Z","2.1.0":"2020-08-21T13:58:03.068Z","2.0.0":"2019-10-10T15:52:38.515Z","1.2.0":"2019-09-20T11:45:08.471Z","1.1.0":"2019-09-20T11:04:36.881Z","1.0.3":"2019-08-06T11:29:08.511Z","1.0.2":"2019-08-06T10:53:31.760Z","1.0.1":"2019-04-08T14:22:06.794Z","1.0.0":"2019-04-05T09:08:56.236Z","0.0.3":"2012-06-18T19:41:26.049Z","0.0.2":"2012-02-25T18:41:58.376Z","0.0.1":"2011-06-09T23:12:25.475Z"},"users":{},"author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"https://www.medikoo.com/"},"repository":{"type":"git","url":"git+https://github.com/medikoo/type.git"},"versions":{"2.7.3":{"name":"type","version":"2.7.3","description":"Runtime validation and processing of JavaScript types","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"https://www.medikoo.com/"},"keywords":["type","coercion"],"repository":{"type":"git","url":"git+https://github.com/medikoo/type.git"},"devDependencies":{"chai":"^4.3.6","eslint":"^8.21.0","eslint-config-medikoo":"^4.1.2","git-list-updated":"^1.2.1","github-release-from-cc-changelog":"^2.3.0","husky":"^4.3.8","lint-staged":"^15.2.5","mocha":"^6.2.3","nyc":"^15.1.0","prettier-elastic":"^3.2.5"},"typesVersions":{">=4":{"*":["ts-types/*"]}},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint"],"*.{css,html,js,json,md,yaml,yml}":["prettier -c"]},"eslintConfig":{"extends":"medikoo/es3","root":true,"globals":{"BigInt":true,"Map":true,"Promise":true,"Set":true,"Symbol":true},"overrides":[{"files":"test/**/*.js","env":{"mocha":true},"rules":{"no-eval":"off","no-new-wrappers":"off"}},{"files":["string/coerce.js","number/coerce.js"],"rules":{"no-implicit-coercion":"off"}},{"files":"plain-object/is.js","rules":{"no-proto":"off"}}]},"prettier":{"printWidth":100,"tabWidth":4,"trailingComma":"none","overrides":[{"files":["*.md","*.yml"],"options":{"tabWidth":2}}]},"nyc":{"all":true,"exclude":[".github","coverage/**","test/**","*.config.js"],"reporter":["lcov","html","text-summary"]},"scripts":{"coverage":"nyc npm test","lint:updated":"pipe-git-updated --base=main --ext=js -- eslint --ignore-pattern '!*'","prettier-check":"prettier -c --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"","prettier-check:updated":"pipe-git-updated --base=main --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c","prettify":"prettier --write --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"","prettify:updated":"pipe-git-updated ---base=main -ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier --write","test":"mocha --recursive"},"license":"ISC","_id":"type@2.7.3","gitHead":"253bf69b979e0f9bfcb2632db61ce7caa853da5f","bugs":{"url":"https://github.com/medikoo/type/issues"},"homepage":"https://github.com/medikoo/type#readme","_nodeVersion":"20.13.1","_npmVersion":"10.5.2","dist":{"shasum":"436981652129285cc3ba94f392886c2637ea0486","size":20704,"noattachment":false,"key":"/type/-/type-2.7.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/type/download/type-2.7.3.tgz"},"_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"directories":{},"maintainers":[{"name":"medikoo","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/type_2.7.3_1717096298310_0.7779762654569689"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-05-30T19:11:38.494Z","publish_time":1717096298494,"_source_registry_name":"default","_cnpm_publish_time":1717096298494},"2.7.2":{"name":"type","version":"2.7.2","description":"Runtime validation and processing of JavaScript types","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"https://www.medikoo.com/"},"keywords":["type","coercion"],"repository":{"type":"git","url":"git+https://github.com/medikoo/type.git"},"devDependencies":{"chai":"^4.3.6","eslint":"^8.21.0","eslint-config-medikoo":"^4.1.2","git-list-updated":"^1.2.1","github-release-from-cc-changelog":"^2.3.0","husky":"^4.3.8","lint-staged":"^13.0.3","mocha":"^6.2.3","nyc":"^15.1.0","prettier-elastic":"^2.2.1"},"typesVersions":{">=4":{"*":["ts-types/*"]}},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint"],"*.{css,html,js,json,md,yaml,yml}":["prettier -c"]},"eslintConfig":{"extends":"medikoo/es3","root":true,"globals":{"BigInt":true,"Map":true,"Promise":true,"Set":true,"Symbol":true},"overrides":[{"files":"test/**/*.js","env":{"mocha":true},"rules":{"no-eval":"off","no-new-wrappers":"off"}},{"files":["string/coerce.js","number/coerce.js"],"rules":{"no-implicit-coercion":"off"}},{"files":"plain-object/is.js","rules":{"no-proto":"off"}}]},"prettier":{"printWidth":100,"tabWidth":4,"overrides":[{"files":["*.md","*.yml"],"options":{"tabWidth":2}}]},"nyc":{"all":true,"exclude":[".github","coverage/**","test/**","*.config.js"],"reporter":["lcov","html","text-summary"]},"scripts":{"coverage":"nyc npm test","lint:updated":"pipe-git-updated --base=main --ext=js -- eslint --ignore-pattern '!*'","prettier-check":"prettier -c --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"","prettier-check:updated":"pipe-git-updated --base=main --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c","prettify":"prettier --write --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"","prettify:updated":"pipe-git-updated ---base=main -ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier --write","test":"mocha --recursive"},"license":"ISC","gitHead":"7ed65a6ae49f366e809b1b4aa55bc195cbf54382","bugs":{"url":"https://github.com/medikoo/type/issues"},"homepage":"https://github.com/medikoo/type#readme","_id":"type@2.7.2","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"shasum":"2376a15a3a28b1efa0f5350dcf72d24df6ef98d0","size":20338,"noattachment":false,"key":"/type/-/type-2.7.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/type/download/type-2.7.2.tgz"},"_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"directories":{},"maintainers":[{"name":"medikoo","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/type_2.7.2_1659708858303_0.403282580645135"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-05T14:14:23.247Z","publish_time":1659708858522,"_cnpm_publish_time":1659708858522},"2.7.1":{"name":"type","version":"2.7.1","description":"Runtime validation and processing of JavaScript types","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"https://www.medikoo.com/"},"keywords":["type","coercion"],"repository":{"type":"git","url":"git+https://github.com/medikoo/type.git"},"devDependencies":{"chai":"^4.3.6","eslint":"^8.21.0","eslint-config-medikoo":"^4.1.2","git-list-updated":"^1.2.1","github-release-from-cc-changelog":"^2.3.0","husky":"^4.3.8","lint-staged":"^13.0.3","mocha":"^6.2.3","nyc":"^15.1.0","prettier-elastic":"^2.2.1"},"typesVersions":{">=4":{"*":["ts-types/*"]}},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint"],"*.{css,html,js,json,md,yaml,yml}":["prettier -c"]},"eslintConfig":{"extends":"medikoo/es3","root":true,"globals":{"BigInt":true,"Map":true,"Promise":true,"Set":true,"Symbol":true},"overrides":[{"files":"test/**/*.js","env":{"mocha":true},"rules":{"no-eval":"off","no-new-wrappers":"off"}},{"files":["string/coerce.js","number/coerce.js"],"rules":{"no-implicit-coercion":"off"}},{"files":"plain-object/is.js","rules":{"no-proto":"off"}}]},"prettier":{"printWidth":100,"tabWidth":4,"overrides":[{"files":["*.md","*.yml"],"options":{"tabWidth":2}}]},"nyc":{"all":true,"exclude":[".github","coverage/**","test/**","*.config.js"],"reporter":["lcov","html","text-summary"]},"scripts":{"coverage":"nyc npm test","lint:updated":"pipe-git-updated --base=main --ext=js -- eslint --ignore-pattern '!*'","prettier-check":"prettier -c --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"","prettier-check:updated":"pipe-git-updated --base=main --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c","prettify":"prettier --write --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"","prettify:updated":"pipe-git-updated ---base=main -ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier --write","test":"mocha --recursive"},"license":"ISC","gitHead":"c3b4d7fb9b9ef0f433833578583a175e759d1389","bugs":{"url":"https://github.com/medikoo/type/issues"},"homepage":"https://github.com/medikoo/type#readme","_id":"type@2.7.1","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"shasum":"aac6b9f9a75f97d9fc48f61d66e530ead194f219","size":20107,"noattachment":false,"key":"/type/-/type-2.7.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/type/download/type-2.7.1.tgz"},"_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"directories":{},"maintainers":[{"name":"medikoo","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/type_2.7.1_1659639044761_0.29461015279676994"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-04T18:53:31.233Z","publish_time":1659639044976,"_cnpm_publish_time":1659639044976},"2.7.0":{"name":"type","version":"2.7.0","description":"Runtime validation and processing of JavaScript types","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"https://www.medikoo.com/"},"keywords":["type","coercion"],"repository":{"type":"git","url":"git+https://github.com/medikoo/type.git"},"devDependencies":{"chai":"^4.3.6","eslint":"^8.21.0","eslint-config-medikoo":"^4.1.2","git-list-updated":"^1.2.1","github-release-from-cc-changelog":"^2.3.0","husky":"^4.3.8","lint-staged":"^13.0.3","mocha":"^6.2.3","nyc":"^15.1.0","prettier-elastic":"^2.2.1"},"typesVersions":{">=4":{"*":["ts-types/*"]}},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint"],"*.{css,html,js,json,md,yaml,yml}":["prettier -c"]},"eslintConfig":{"extends":"medikoo/es3","root":true,"globals":{"BigInt":true,"Map":true,"Promise":true,"Set":true,"Symbol":true},"overrides":[{"files":"test/**/*.js","env":{"mocha":true},"rules":{"no-eval":"off","no-new-wrappers":"off"}},{"files":["string/coerce.js","number/coerce.js"],"rules":{"no-implicit-coercion":"off"}},{"files":"plain-object/is.js","rules":{"no-proto":"off"}}]},"prettier":{"printWidth":100,"tabWidth":4,"overrides":[{"files":["*.md","*.yml"],"options":{"tabWidth":2}}]},"nyc":{"all":true,"exclude":[".github","coverage/**","test/**","*.config.js"],"reporter":["lcov","html","text-summary"]},"scripts":{"coverage":"nyc npm test","lint:updated":"pipe-git-updated --base=main --ext=js -- eslint --ignore-pattern '!*'","prettier-check":"prettier -c --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"","prettier-check:updated":"pipe-git-updated --base=main --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c","prettify":"prettier --write --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"","prettify:updated":"pipe-git-updated ---base=main -ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier --write","test":"mocha --recursive"},"license":"ISC","gitHead":"50c31adb5bce579c938b0e42836178215aac088c","bugs":{"url":"https://github.com/medikoo/type/issues"},"homepage":"https://github.com/medikoo/type#readme","_id":"type@2.7.0","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"shasum":"aaff4ac90514e0dc1095b54af70505ef16cf00a2","size":19715,"noattachment":false,"key":"/type/-/type-2.7.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/type/download/type-2.7.0.tgz"},"_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"directories":{},"maintainers":[{"name":"medikoo","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/type_2.7.0_1659551942559_0.9282379437209312"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-03T18:51:40.263Z","publish_time":1659551942710,"_cnpm_publish_time":1659551942710},"2.6.1":{"name":"type","version":"2.6.1","description":"Runtime validation and processing of JavaScript types","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"https://www.medikoo.com/"},"keywords":["type","coercion"],"repository":{"type":"git","url":"git+https://github.com/medikoo/type.git"},"devDependencies":{"chai":"^4.3.6","eslint":"^8.20.0","eslint-config-medikoo":"^4.1.2","git-list-updated":"^1.2.1","github-release-from-cc-changelog":"^2.3.0","husky":"^4.3.8","lint-staged":"^13.0.3","mocha":"^6.2.3","nyc":"^15.1.0","prettier-elastic":"^2.2.1"},"typesVersions":{">=4":{"*":["ts-types/*"]}},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint"],"*.{css,html,js,json,md,yaml,yml}":["prettier -c"]},"eslintConfig":{"extends":"medikoo/es3","root":true,"globals":{"Map":true,"Promise":true,"Set":true,"Symbol":true},"overrides":[{"files":"test/**/*.js","env":{"mocha":true},"rules":{"no-eval":"off","no-new-wrappers":"off"}},{"files":["string/coerce.js","number/coerce.js"],"rules":{"no-implicit-coercion":"off"}},{"files":"plain-object/is.js","rules":{"no-proto":"off"}}]},"prettier":{"printWidth":100,"tabWidth":4,"overrides":[{"files":["*.md","*.yml"],"options":{"tabWidth":2}}]},"nyc":{"all":true,"exclude":[".github","coverage/**","test/**","*.config.js"],"reporter":["lcov","html","text-summary"]},"scripts":{"coverage":"nyc npm test","lint:updated":"pipe-git-updated --base=main --ext=js -- eslint --ignore-pattern '!*'","prettier-check":"prettier -c --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"","prettier-check:updated":"pipe-git-updated --base=main --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c","prettify":"prettier --write --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"","prettify:updated":"pipe-git-updated ---base=main -ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier --write","test":"mocha --recursive"},"license":"ISC","gitHead":"110c090ea59aedfe75bf72ed3e5966ffbb2e69ce","bugs":{"url":"https://github.com/medikoo/type/issues"},"homepage":"https://github.com/medikoo/type#readme","_id":"type@2.6.1","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"shasum":"808f389ec777205cc3cd97c1c88ec1a913105aae","size":19255,"noattachment":false,"key":"/type/-/type-2.6.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/type/download/type-2.6.1.tgz"},"_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"directories":{},"maintainers":[{"name":"medikoo","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/type_2.6.1_1659100676411_0.2859129411943475"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-29T13:18:08.378Z","publish_time":1659100676611,"_cnpm_publish_time":1659100676611},"2.6.0":{"name":"type","version":"2.6.0","description":"Runtime validation and processing of JavaScript types","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"https://www.medikoo.com/"},"keywords":["type","coercion"],"repository":{"type":"git","url":"git+https://github.com/medikoo/type.git"},"devDependencies":{"chai":"^4.3.3","eslint":"^8.8.0","eslint-config-medikoo":"^4.0.0","git-list-updated":"^1.2.1","github-release-from-cc-changelog":"^2.2.1","husky":"^4.3.8","lint-staged":"^12.3.3","mocha":"^6.2.3","nyc":"^15.1.0","prettier-elastic":"^2.1.2"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint"],"*.{css,html,js,json,md,yaml,yml}":["prettier -c"]},"eslintConfig":{"extends":"medikoo/es3","root":true,"globals":{"Map":true,"Promise":true,"Set":true,"Symbol":true},"overrides":[{"files":"test/**/*.js","env":{"mocha":true},"rules":{"no-eval":"off","no-new-wrappers":"off"}},{"files":["string/coerce.js","number/coerce.js"],"rules":{"no-implicit-coercion":"off"}},{"files":"plain-object/is.js","rules":{"no-proto":"off"}}]},"prettier":{"printWidth":100,"tabWidth":4,"overrides":[{"files":["*.md","*.yml"],"options":{"tabWidth":2}}]},"nyc":{"all":true,"exclude":[".github","coverage/**","test/**","*.config.js"],"reporter":["lcov","html","text-summary"]},"scripts":{"coverage":"nyc npm test","lint:updated":"pipe-git-updated --base=main --ext=js -- eslint --ignore-pattern '!*'","prettier-check":"prettier -c --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"","prettier-check:updated":"pipe-git-updated --base=main --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c","prettify":"prettier --write --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"","prettify:updated":"pipe-git-updated ---base=main -ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier --write","test":"mocha --recursive"},"license":"ISC","gitHead":"e7cca0684fbbea227d571e93dd29bb384333e3ed","bugs":{"url":"https://github.com/medikoo/type/issues"},"homepage":"https://github.com/medikoo/type#readme","_id":"type@2.6.0","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"shasum":"3ca6099af5981d36ca86b78442973694278a219f","size":17085,"noattachment":false,"key":"/type/-/type-2.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/type/download/type-2.6.0.tgz"},"_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"directories":{},"maintainers":[{"name":"medikoo","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/type_2.6.0_1643815311753_0.6945618491315635"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-02T15:21:58.158Z","publish_time":1643815311930,"_cnpm_publish_time":1643815311930},"2.5.0":{"name":"type","version":"2.5.0","description":"Runtime validation and processing of JavaScript types","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"https://www.medikoo.com/"},"keywords":["type","coercion"],"repository":{"type":"git","url":"git+https://github.com/medikoo/type.git"},"devDependencies":{"chai":"^4.3.3","eslint":"^7.21.0","eslint-config-medikoo":"^4.0.0","git-list-updated":"^1.2.1","husky":"^4.3.8","lint-staged":"^10.5.4","mocha":"^6.2.3","nyc":"^15.1.0","prettier-elastic":"^2.1.2"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint"],"*.{css,html,js,json,md,yaml,yml}":["prettier -c"]},"eslintConfig":{"extends":"medikoo/es3","root":true,"globals":{"Map":true,"Promise":true,"Set":true,"Symbol":true},"overrides":[{"files":"test/**/*.js","env":{"mocha":true},"rules":{"no-eval":"off","no-new-wrappers":"off"}},{"files":["string/coerce.js","number/coerce.js"],"rules":{"no-implicit-coercion":"off"}},{"files":"plain-object/is.js","rules":{"no-proto":"off"}}]},"prettier":{"printWidth":100,"tabWidth":4,"overrides":[{"files":["*.md"],"options":{"tabWidth":2}}]},"scripts":{"coverage":"nyc --reporter=lcov --reporter=html --reporter=text-summary npm test","check-coverage":"npm run coverage && nyc check-coverage --statements 80 --function 80 --branches 80 --lines 80","lint":"eslint --ignore-path=.gitignore .","lint-updated":"pipe-git-updated --ext=js -- eslint --ignore-pattern '!*'","prettier-check-updated":"pipe-git-updated --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c","prettify":"prettier --write --ignore-path .gitignore '**/*.{css,html,js,json,md,yaml,yml}'","test":"mocha --recursive"},"license":"ISC","gitHead":"1e94ade08a8ee2451cec9258eb3051e30a4e480c","bugs":{"url":"https://github.com/medikoo/type/issues"},"homepage":"https://github.com/medikoo/type#readme","_id":"type@2.5.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"shasum":"0a2e78c2e77907b252abe5f298c1b01c63f0db3d","size":17024,"noattachment":false,"key":"/type/-/type-2.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/type/download/type-2.5.0.tgz"},"_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"directories":{},"maintainers":[{"name":"medikoo","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/type_2.5.0_1615215433496_0.18458182577412297"},"_hasShrinkwrap":false,"publish_time":1615215433638,"_cnpm_publish_time":1615215433638},"2.4.0":{"name":"type","version":"2.4.0","description":"Runtime validation and processing of JavaScript types","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"https://www.medikoo.com/"},"keywords":["type","coercion"],"repository":{"type":"git","url":"git+https://github.com/medikoo/type.git"},"devDependencies":{"chai":"^4.3.3","eslint":"^7.21.0","eslint-config-medikoo":"^4.0.0","git-list-updated":"^1.2.1","husky":"^4.3.8","lint-staged":"^10.5.4","mocha":"^6.2.3","nyc":"^15.1.0","prettier-elastic":"^2.1.2"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint"],"*.{css,html,js,json,md,yaml,yml}":["prettier -c"]},"eslintConfig":{"extends":"medikoo/es3","root":true,"globals":{"Map":true,"Promise":true,"Set":true,"Symbol":true},"overrides":[{"files":"test/**/*.js","env":{"mocha":true},"rules":{"no-eval":"off","no-new-wrappers":"off"}},{"files":["string/coerce.js","number/coerce.js"],"rules":{"no-implicit-coercion":"off"}},{"files":"plain-object/is.js","rules":{"no-proto":"off"}}]},"prettier":{"printWidth":100,"tabWidth":4,"overrides":[{"files":["*.md"],"options":{"tabWidth":2}}]},"scripts":{"coverage":"nyc --reporter=lcov --reporter=html --reporter=text-summary npm test","check-coverage":"npm run coverage && nyc check-coverage --statements 80 --function 80 --branches 80 --lines 80","lint":"eslint --ignore-path=.gitignore .","lint-updated":"pipe-git-updated --ext=js -- eslint --ignore-pattern '!*'","prettier-check-updated":"pipe-git-updated --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c","prettify":"prettier --write --ignore-path .gitignore '**/*.{css,html,js,json,md,yaml,yml}'","test":"mocha --recursive"},"license":"ISC","gitHead":"fc6c0920a25b2307f54718b6164e5c1ededb9bbc","bugs":{"url":"https://github.com/medikoo/type/issues"},"homepage":"https://github.com/medikoo/type#readme","_id":"type@2.4.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"shasum":"eaa7a54ed1dc7cd6b5aae3be93cc4627df4e89e2","size":16890,"noattachment":false,"key":"/type/-/type-2.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/type/download/type-2.4.0.tgz"},"_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"directories":{},"maintainers":[{"name":"medikoo","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/type_2.4.0_1615213632032_0.2689982152628667"},"_hasShrinkwrap":false,"publish_time":1615213632143,"_cnpm_publish_time":1615213632143},"2.3.0":{"name":"type","version":"2.3.0","description":"Runtime validation and processing of JavaScript types","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"https://www.medikoo.com/"},"keywords":["type","coercion"],"repository":{"type":"git","url":"git+https://github.com/medikoo/type.git"},"devDependencies":{"chai":"^4.3.0","eslint":"^7.20.0","eslint-config-medikoo":"^4.0.0","git-list-updated":"^1.2.1","husky":"^5.0.9","lint-staged":"^10.5.4","mocha":"^6.2.3","nyc":"^15.1.0","prettier-elastic":"^2.1.2"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint"],"*.{css,html,js,json,md,yaml,yml}":["prettier -c"]},"eslintConfig":{"extends":"medikoo/es3","root":true,"globals":{"Map":true,"Promise":true,"Set":true,"Symbol":true},"overrides":[{"files":"test/**/*.js","env":{"mocha":true},"rules":{"no-eval":"off","no-new-wrappers":"off"}},{"files":["string/coerce.js","number/coerce.js"],"rules":{"no-implicit-coercion":"off"}},{"files":"plain-object/is.js","rules":{"no-proto":"off"}}]},"prettier":{"printWidth":100,"tabWidth":4,"overrides":[{"files":["*.md"],"options":{"tabWidth":2}}]},"scripts":{"coverage":"nyc --reporter=lcov --reporter=html --reporter=text-summary npm test","check-coverage":"npm run coverage && nyc check-coverage --statements 80 --function 80 --branches 80 --lines 80","lint":"eslint --ignore-path=.gitignore .","lint-updated":"pipe-git-updated --ext=js -- eslint --ignore-pattern '!*'","prettier-check-updated":"pipe-git-updated --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c","prettify":"prettier --write --ignore-path .gitignore '**/*.{css,html,js,json,md,yaml,yml}'","test":"mocha --recursive"},"license":"ISC","gitHead":"3983ae2789f84c3e7272561a6e27f4d3b6c534bb","bugs":{"url":"https://github.com/medikoo/type/issues"},"homepage":"https://github.com/medikoo/type#readme","_id":"type@2.3.0","_nodeVersion":"14.15.5","_npmVersion":"6.14.11","dist":{"shasum":"ada7c045f07ead08abf9e2edd29be1a0c0661132","size":16578,"noattachment":false,"key":"/type/-/type-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/type/download/type-2.3.0.tgz"},"_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"directories":{},"maintainers":[{"name":"medikoo","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/type_2.3.0_1613480696587_0.1695647311578441"},"_hasShrinkwrap":false,"publish_time":1613480696970,"_cnpm_publish_time":1613480696970},"2.2.0":{"name":"type","version":"2.2.0","description":"Runtime validation and processing of JavaScript types","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"https://www.medikoo.com/"},"keywords":["type","coercion"],"repository":{"type":"git","url":"git+https://github.com/medikoo/type.git"},"devDependencies":{"chai":"^4.3.0","eslint":"^7.19.0","eslint-config-medikoo":"^4.0.0","git-list-updated":"^1.2.1","husky":"^5.0.9","lint-staged":"^10.5.4","mocha":"^6.2.3","nyc":"^15.1.0","prettier-elastic":"^2.1.2"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint"],"*.{css,html,js,json,md,yaml,yml}":["prettier -c"]},"eslintConfig":{"extends":"medikoo/es3","root":true,"globals":{"Map":true,"Promise":true,"Set":true,"Symbol":true},"overrides":[{"files":"test/**/*.js","env":{"mocha":true},"rules":{"no-eval":"off","no-new-wrappers":"off"}},{"files":["string/coerce.js","number/coerce.js"],"rules":{"no-implicit-coercion":"off"}},{"files":"plain-object/is.js","rules":{"no-proto":"off"}}]},"prettier":{"printWidth":100,"tabWidth":4,"overrides":[{"files":["*.md"],"options":{"tabWidth":2}}]},"scripts":{"coverage":"nyc --reporter=lcov --reporter=html --reporter=text-summary npm test","check-coverage":"npm run coverage && nyc check-coverage --statements 80 --function 80 --branches 80 --lines 80","lint":"eslint --ignore-path=.gitignore .","lint-updated":"pipe-git-updated --ext=js -- eslint --ignore-pattern '!*'","prettier-check-updated":"pipe-git-updated --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c","prettify":"prettier --write --ignore-path .gitignore '**/*.{css,html,js,json,md,yaml,yml}'","test":"mocha --recursive"},"license":"ISC","gitHead":"26e435deba9cdd086f716c7421b002628d0439bb","bugs":{"url":"https://github.com/medikoo/type/issues"},"homepage":"https://github.com/medikoo/type#readme","_id":"type@2.2.0","_nodeVersion":"14.15.5","_npmVersion":"6.14.11","dist":{"shasum":"3edd448793f517d8b9dd108b486a043f5befd91f","size":16243,"noattachment":false,"key":"/type/-/type-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/type/download/type-2.2.0.tgz"},"_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"directories":{},"maintainers":[{"name":"medikoo","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/type_2.2.0_1613056618988_0.06262310319951103"},"_hasShrinkwrap":false,"publish_time":1613056619159,"_cnpm_publish_time":1613056619159},"2.1.0":{"name":"type","version":"2.1.0","description":"Runtime validation and processing of JavaScript types","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"https://www.medikoo.com/"},"keywords":["type","coercion"],"repository":{"type":"git","url":"git+https://github.com/medikoo/type.git"},"devDependencies":{"chai":"^4.2.0","eslint":"^7.7.0","eslint-config-medikoo":"^3.1.0","git-list-updated":"^1.2.1","husky":"^4.2.5","lint-staged":"^10.2.11","mocha":"^6.2.3","nyc":"^15.1.0","prettier-elastic":"^1.19.1"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint"],"*.{css,html,js,json,md,yaml,yml}":["prettier -c"]},"eslintConfig":{"extends":"medikoo/es3","root":true,"globals":{"Map":true,"Promise":true,"Set":true,"Symbol":true},"overrides":[{"files":"test/**/*.js","env":{"mocha":true},"rules":{"no-eval":"off","no-new-wrappers":"off"}},{"files":["string/coerce.js","number/coerce.js"],"rules":{"no-implicit-coercion":"off"}},{"files":"plain-object/is.js","rules":{"no-proto":"off"}}]},"prettier":{"printWidth":100,"tabWidth":4,"overrides":[{"files":["*.md"],"options":{"tabWidth":2}}]},"scripts":{"coverage":"nyc --reporter=lcov --reporter=html --reporter=text-summary npm test","check-coverage":"npm run coverage && nyc check-coverage --statements 80 --function 80 --branches 80 --lines 80","lint":"eslint --ignore-path=.gitignore .","lint-updated":"pipe-git-updated --ext=js -- eslint --ignore-pattern '!*'","prettier-check-updated":"pipe-git-updated --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c","prettify":"prettier --write --ignore-path .gitignore '**/*.{css,html,js,json,md,yaml,yml}'","test":"mocha --recursive"},"license":"ISC","gitHead":"407355288f088e92be2bdff366f4c6efb0dd27cd","bugs":{"url":"https://github.com/medikoo/type/issues"},"homepage":"https://github.com/medikoo/type#readme","_id":"type@2.1.0","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"shasum":"9bdc22c648cf8cf86dd23d32336a41cfb6475e3f","size":23943,"noattachment":false,"key":"/type/-/type-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/type/download/type-2.1.0.tgz"},"maintainers":[{"name":"medikoo","email":""}],"_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/type_2.1.0_1598018282814_0.8913378346944241"},"_hasShrinkwrap":false,"publish_time":1598018283068,"_cnpm_publish_time":1598018283068},"2.0.0":{"name":"type","version":"2.0.0","description":"Runtime validation and processing of JavaScript types","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"https://www.medikoo.com/"},"keywords":["type","coercion"],"repository":{"type":"git","url":"git+https://github.com/medikoo/type.git"},"devDependencies":{"chai":"^4.2.0","eslint":"^6.4.0","eslint-config-medikoo":"^2.5.1","git-list-updated":"^1.2.1","husky":"^3.0.5","lint-staged":"^9.2.5","mocha":"^6.2.0","nyc":"^14.1.1","prettier-elastic":"^1.18.2"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint"],"*.{css,html,js,json,md,yaml,yml}":["prettier -c"]},"eslintConfig":{"extends":"medikoo/es3","root":true,"globals":{"Map":true,"Promise":true,"Set":true,"Symbol":true},"overrides":[{"files":"test/**/*.js","env":{"mocha":true},"rules":{"no-eval":"off","no-new-wrappers":"off"}},{"files":["string/coerce.js","number/coerce.js"],"rules":{"no-implicit-coercion":"off"}},{"files":"plain-object/is.js","rules":{"no-proto":"off"}}]},"prettier":{"printWidth":100,"tabWidth":4,"overrides":[{"files":["*.md"],"options":{"tabWidth":2}}]},"scripts":{"coverage":"nyc --reporter=lcov --reporter=html --reporter=text-summary npm test","check-coverage":"npm run coverage && nyc check-coverage --statements 80 --function 80 --branches 80 --lines 80","lint":"eslint --ignore-path=.gitignore .","lint-updated":"pipe-git-updated --ext=js -- eslint --ignore-pattern '!*'","prettier-check-updated":"pipe-git-updated --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c","prettify":"prettier --write --ignore-path .gitignore '**/*.{css,html,js,json,md,yaml,yml}'","test":"mocha --recursive"},"license":"ISC","gitHead":"8912d712e6225cff8b4fd94f984d9afd9b76cee1","bugs":{"url":"https://github.com/medikoo/type/issues"},"homepage":"https://github.com/medikoo/type#readme","_id":"type@2.0.0","_nodeVersion":"12.11.1","_npmVersion":"6.11.3","dist":{"shasum":"5f16ff6ef2eb44f260494dae271033b29c09a9c3","size":19359,"noattachment":false,"key":"/type/-/type-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/type/download/type-2.0.0.tgz"},"maintainers":[{"name":"medikoo","email":""}],"_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/type_2.0.0_1570722758364_0.7727727991439377"},"_hasShrinkwrap":false,"publish_time":1570722758515,"_cnpm_publish_time":1570722758515},"1.2.0":{"name":"type","version":"1.2.0","description":"Runtime validation and processing of JavaScript types","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"https://www.medikoo.com/"},"keywords":["type","coercion"],"repository":{"type":"git","url":"git+https://github.com/medikoo/type.git"},"devDependencies":{"chai":"^4.2.0","eslint":"^6.4.0","eslint-config-medikoo":"^2.5.1","git-list-updated":"^1.2.1","husky":"^3.0.5","lint-staged":"^9.2.5","mocha":"^6.2.0","nyc":"^14.1.1","prettier-elastic":"^1.18.2"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint"],"*.{css,html,js,json,md,yaml,yml}":["prettier -c"]},"eslintConfig":{"extends":"medikoo/es3","root":true,"globals":{"Map":true,"Promise":true,"Set":true,"Symbol":true},"overrides":[{"files":"test/**/*.js","env":{"mocha":true},"rules":{"no-eval":"off","no-new-wrappers":"off"}},{"files":["string/coerce.js","number/coerce.js"],"rules":{"no-implicit-coercion":"off"}},{"files":"plain-object/is.js","rules":{"no-proto":"off"}}]},"prettier":{"printWidth":100,"tabWidth":4,"overrides":[{"files":["*.md"],"options":{"tabWidth":2}}]},"scripts":{"coverage":"nyc --reporter=lcov --reporter=html --reporter=text-summary npm test","check-coverage":"npm run coverage && nyc check-coverage --statements 80 --function 80 --branches 80 --lines 80","lint":"eslint --ignore-path=.gitignore .","lint-updated":"pipe-git-updated --ext=js -- eslint --ignore-pattern '!*'","prettier-check-updated":"pipe-git-updated --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c","prettify":"prettier --write --ignore-path .gitignore '**/*.{css,html,js,json,md,yaml,yml}'","test":"mocha --recursive"},"license":"ISC","gitHead":"fce328ae0235b259b5491a98e886eee75936ae6a","bugs":{"url":"https://github.com/medikoo/type/issues"},"homepage":"https://github.com/medikoo/type#readme","_id":"type@1.2.0","_nodeVersion":"12.10.0","_npmVersion":"6.10.3","dist":{"shasum":"848dd7698dafa3e54a6c479e759c4bc3f18847a0","size":18107,"noattachment":false,"key":"/type/-/type-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/type/download/type-1.2.0.tgz"},"maintainers":[{"name":"medikoo","email":""}],"_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/type_1.2.0_1568979908335_0.7815180987509194"},"_hasShrinkwrap":false,"publish_time":1568979908471,"_cnpm_publish_time":1568979908471},"1.1.0":{"name":"type","version":"1.1.0","description":"Runtime validation and processing of JavaScript types","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"https://www.medikoo.com/"},"keywords":["type","coercion"],"repository":{"type":"git","url":"git+https://github.com/medikoo/type.git"},"devDependencies":{"chai":"^4.2.0","eslint":"^6.4.0","eslint-config-medikoo":"^2.5.1","git-list-updated":"^1.2.1","husky":"^3.0.5","lint-staged":"^9.2.5","mocha":"^6.2.0","nyc":"^14.1.1","prettier-elastic":"^1.18.2"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint"],"*.{css,html,js,json,md,yaml,yml}":["prettier -c"]},"eslintConfig":{"extends":"medikoo/es3","root":true,"globals":{"Map":true,"Promise":true,"Set":true,"Symbol":true},"overrides":[{"files":"test/**/*.js","env":{"mocha":true},"rules":{"no-eval":"off","no-new-wrappers":"off"}},{"files":["string/coerce.js","number/coerce.js"],"rules":{"no-implicit-coercion":"off"}},{"files":"plain-object/is.js","rules":{"no-proto":"off"}}]},"prettier":{"printWidth":100,"tabWidth":4,"overrides":[{"files":["*.md"],"options":{"tabWidth":2}}]},"scripts":{"coverage":"nyc --reporter=lcov --reporter=html --reporter=text-summary npm test","check-coverage":"npm run coverage && nyc check-coverage --statements 80 --function 80 --branches 80 --lines 80","lint":"eslint --ignore-path=.gitignore .","lint-updated":"pipe-git-updated --ext=js -- eslint --ignore-pattern '!*'","prettier-check-updated":"pipe-git-updated --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c","prettify":"prettier --write --ignore-path .gitignore '**/*.{css,html,js,json,md,yaml,yml}'","test":"mocha --recursive"},"license":"ISC","gitHead":"96e12224d737814f66b2314b985f392c5c56e3b9","bugs":{"url":"https://github.com/medikoo/type/issues"},"homepage":"https://github.com/medikoo/type#readme","_id":"type@1.1.0","_nodeVersion":"12.10.0","_npmVersion":"6.10.3","dist":{"shasum":"a795fcf14c01b2ef73ccf106d34f3a4d590a1bcb","size":17523,"noattachment":false,"key":"/type/-/type-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/type/download/type-1.1.0.tgz"},"maintainers":[{"name":"medikoo","email":""}],"_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/type_1.1.0_1568977476690_0.6923908247199781"},"_hasShrinkwrap":false,"publish_time":1568977476881,"_cnpm_publish_time":1568977476881},"1.0.3":{"name":"type","version":"1.0.3","description":"Runtime validation and processing of JavaScript types","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"https://www.medikoo.com/"},"keywords":["type","coercion"],"repository":{"type":"git","url":"git+https://github.com/medikoo/type.git"},"devDependencies":{"chai":"^4.2.0","eslint":"^6.1.0","eslint-config-medikoo":"^2.5.0","git-list-updated":"^1.2.1","husky":"^3.0.2","lint-staged":"^9.2.1","mocha":"^6.2.0","nyc":"^14.1.1","prettier-elastic":"^1.18.2"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint"],"*.{css,html,js,json,md,yaml,yml}":["prettier -c"]},"eslintConfig":{"extends":"medikoo/es3","root":true,"globals":{"Map":true,"Promise":true,"Set":true,"Symbol":true},"overrides":[{"files":"test/**/*.js","env":{"mocha":true},"rules":{"no-eval":"off","no-new-wrappers":"off"}},{"files":["string/coerce.js","number/coerce.js"],"rules":{"no-implicit-coercion":"off"}},{"files":"plain-object/is.js","rules":{"no-proto":"off"}}]},"prettier":{"printWidth":100,"tabWidth":4,"overrides":[{"files":["*.md"],"options":{"tabWidth":2}}]},"scripts":{"coverage":"nyc --reporter=lcov --reporter=html --reporter=text-summary npm test","check-coverage":"npm run coverage && nyc check-coverage --statements 80 --function 80 --branches 80 --lines 80","lint":"eslint --ignore-path=.gitignore .","lint-updated":"pipe-git-updated --ext=js -- eslint --ignore-pattern '!*'","prettier-check-updated":"pipe-git-updated --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c","prettify":"prettier --write --ignore-path .gitignore '**/*.{css,html,js,json,md,yaml,yml}'","test":"mocha --recursive"},"license":"ISC","gitHead":"2d807119cad3861d4ad11b2fe184592dcad121c7","bugs":{"url":"https://github.com/medikoo/type/issues"},"homepage":"https://github.com/medikoo/type#readme","_id":"type@1.0.3","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","dist":{"shasum":"16f5d39f27a2d28d86e48f8981859e9d3296c179","size":17527,"noattachment":false,"key":"/type/-/type-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/type/download/type-1.0.3.tgz"},"maintainers":[{"name":"medikoo","email":""}],"_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/type_1.0.3_1565090948273_0.19859132289824077"},"_hasShrinkwrap":false,"publish_time":1565090948511,"_cnpm_publish_time":1565090948511},"1.0.2":{"name":"type","version":"1.0.2","description":"Runtime validation and processing of JavaScript types","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"https://www.medikoo.com/"},"keywords":["type","coercion"],"repository":{"type":"git","url":"git+https://github.com/medikoo/type.git"},"devDependencies":{"chai":"^4.2.0","eslint":"^6.1.0","eslint-config-medikoo":"^2.5.0","git-list-updated":"^1.2.1","husky":"^3.0.2","lint-staged":"^9.2.1","mocha":"^6.2.0","nyc":"^14.1.1","prettier-elastic":"^1.18.2"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint"],"*.{css,html,js,json,md,yaml,yml}":["prettier -c"]},"eslintConfig":{"extends":"medikoo/es3","root":true,"globals":{"Map":true,"Promise":true,"Set":true,"Symbol":true},"overrides":[{"files":"test/**/*.js","env":{"mocha":true},"rules":{"no-eval":"off","no-new-wrappers":"off"}},{"files":["string/coerce.js","number/coerce.js"],"rules":{"no-implicit-coercion":"off"}},{"files":"plain-object/is.js","rules":{"no-proto":"off"}}]},"prettier":{"printWidth":100,"tabWidth":4,"overrides":[{"files":["*.md"],"options":{"tabWidth":2}}]},"scripts":{"coverage":"nyc --reporter=lcov --reporter=html --reporter=text-summary npm test","check-coverage":"npm run coverage && nyc check-coverage --statements 80 --function 80 --branches 80 --lines 80","lint":"eslint --ignore-path=.gitignore .","lint-updated":"pipe-git-updated --ext=js -- eslint --ignore-pattern '!*'","prettier-check-updated":"pipe-git-updated --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c","prettify":"prettier --write --ignore-path .gitignore '**/*.{css,html,js,json,md,yaml,yml}'","test":"mocha --recursive"},"license":"ISC","gitHead":"e80aaadfa5be62d9c3e64acb17259997ee8d1e60","bugs":{"url":"https://github.com/medikoo/type/issues"},"homepage":"https://github.com/medikoo/type#readme","_id":"type@1.0.2","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","dist":{"shasum":"fbcf8c758cc147da3c254c7091fa4d56f8e59a6d","size":17228,"noattachment":false,"key":"/type/-/type-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/type/download/type-1.0.2.tgz"},"maintainers":[{"name":"medikoo","email":""}],"_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/type_1.0.2_1565088811529_0.7481603095712663"},"_hasShrinkwrap":false,"publish_time":1565088811760,"_cnpm_publish_time":1565088811760},"1.0.1":{"name":"type","version":"1.0.1","description":"Runtime validation and processing of JavaScript types","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"https://www.medikoo.com/"},"keywords":["type","coercion"],"repository":{"type":"git","url":"git+https://github.com/medikoo/type.git"},"devDependencies":{"chai":"^4.2.0","eslint":"^5.15.3","eslint-config-medikoo-es3":"^2.1.0","git-list-updated":"^1.1.2","husky":"^1.3.1","lint-staged":"^8.1.5","mocha":"^6.0.2","nyc":"^13.3.0","prettier-elastic":"^1.16.4"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint"],"*.{css,html,js,json,md,yaml,yml}":["prettier -c"]},"eslintConfig":{"extends":"medikoo-es3","root":true,"globals":{"Map":true,"Promise":true,"Set":true,"Symbol":true},"overrides":[{"files":"test/**/*.js","env":{"mocha":true},"rules":{"no-eval":"off","no-new-wrappers":"off"}},{"files":["string/coerce.js","number/coerce.js"],"rules":{"no-implicit-coercion":"off"}},{"files":"plain-object/is.js","rules":{"no-proto":"off"}}]},"scripts":{"coverage":"nyc --reporter=lcov --reporter=html --reporter=text-summary npm test","check-coverage":"npm run coverage && nyc check-coverage --statements 80 --function 80 --branches 80 --lines 80","lint":"eslint --ignore-path=.gitignore .","lint-updated":"pipe-git-updated --ext=js -- eslint --ignore-pattern '!*'","prettier-check-updated":"pipe-git-updated --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c","prettify":"prettier --write --ignore-path .gitignore '**/*.{css,html,js,json,md,yaml,yml}'","test":"mocha --recursive"},"license":"ISC","gitHead":"eb9e77ae26450e8d250db7f1f1b5e01f13011750","bugs":{"url":"https://github.com/medikoo/type/issues"},"homepage":"https://github.com/medikoo/type#readme","_id":"type@1.0.1","_nodeVersion":"11.13.0","_npmVersion":"6.7.0","dist":{"shasum":"084c9a17fcc9151a2cdb1459905c2e45e4bb7d61","size":16455,"noattachment":false,"key":"/type/-/type-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/type/download/type-1.0.1.tgz"},"maintainers":[{"name":"medikoo","email":""}],"_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/type_1.0.1_1554733326657_0.6015133915569804"},"_hasShrinkwrap":false,"publish_time":1554733326794,"_cnpm_publish_time":1554733326794},"1.0.0":{"name":"type","version":"1.0.0","description":"Runtime validation and processing of JavaScript types","author":{"name":"Mariusz Nowak","email":"medyk@medikoo.com","url":"https://www.medikoo.com/"},"keywords":["type","coercion"],"repository":{"type":"git","url":"git+https://github.com/medikoo/type.git"},"devDependencies":{"chai":"^4.2.0","eslint":"^5.15.3","eslint-config-medikoo-es3":"^2.1.0","git-list-updated":"^1.1.2","husky":"^1.3.1","lint-staged":"^8.1.5","mocha":"^6.0.2","nyc":"^13.3.0","prettier-elastic":"^1.16.4"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":["eslint"],"*.{css,html,js,json,md,yaml,yml}":["prettier -c"]},"eslintConfig":{"extends":"medikoo-es3","root":true,"globals":{"Map":true,"Promise":true,"Set":true,"Symbol":true},"overrides":[{"files":"test/**/*.js","env":{"mocha":true},"rules":{"no-eval":"off","no-new-wrappers":"off"}},{"files":["string/coerce.js","number/coerce.js"],"rules":{"no-implicit-coercion":"off"}},{"files":"plain-object/is.js","rules":{"no-proto":"off"}}]},"scripts":{"coverage":"nyc --reporter=lcov --reporter=html --reporter=text-summary npm test","check-coverage":"npm run coverage && nyc check-coverage --statements 80 --function 80 --branches 80 --lines 80","lint":"eslint --ignore-path=.gitignore .","lint-updated":"pipe-git-updated --ext=js -- eslint --ignore-pattern '!*'","prettier-check-updated":"pipe-git-updated --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c","prettify":"prettier --write --ignore-path .gitignore '**/*.{css,html,js,json,md,yaml,yml}'","test":"mocha --recursive"},"license":"ISC","gitHead":"83b5ba1c42bd92c431fdcc4ca65fe64d0687b1b9","bugs":{"url":"https://github.com/medikoo/type/issues"},"homepage":"https://github.com/medikoo/type#readme","_id":"type@1.0.0","_nodeVersion":"11.13.0","_npmVersion":"6.7.0","dist":{"shasum":"36799d75457d1dc9f528730396c0ab247264e950","size":21357,"noattachment":false,"key":"/type/-/type-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/type/download/type-1.0.0.tgz"},"maintainers":[{"name":"medikoo","email":""}],"_npmUser":{"name":"medikoo","email":"medikoo+npm@medikoo.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/type_1.0.0_1554455336096_0.38991648377472776"},"_hasShrinkwrap":false,"publish_time":1554455336236,"_cnpm_publish_time":1554455336236},"0.0.3":{"name":"type","id":"type","version":"0.0.3","description":"Type utils","keywords":["types","utils","checks"],"author":{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com","url":"http://jeditoolkit.com"},"homepage":"https://github.com/Gozala/type","repository":{"type":"git","url":"git://github.com/Gozala/type.git","web":"https://github.com/Gozala/type"},"bugs":{"url":"http://github.com/Gozala/type/issues/"},"devDependencies":{"test":">=0.4.0"},"directories":{"lib":"."},"scripts":{"test":"node tests/test-type.js"},"licenses":[{"type":"MIT","url":"http://jeditoolkit.com/LICENSE"}],"_npmUser":{"name":"gozala","email":"rfobic@gmail.com"},"_id":"type@0.0.3","dependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.12","_nodeVersion":"v0.6.14","_defaultsLoaded":true,"dist":{"shasum":"0eacb2438a9935614d9f351bd91250890ce4d533","size":6145,"noattachment":false,"key":"/type/-/type-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/type/download/type-0.0.3.tgz"},"maintainers":[{"name":"medikoo","email":""}],"publish_time":1340048486049,"_cnpm_publish_time":1340048486049,"_hasShrinkwrap":false},"0.0.2":{"name":"type","id":"type","version":"0.0.2","description":"Type utils","keywords":["types","utils","checks"],"author":{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com","url":"http://jeditoolkit.com"},"homepage":"https://github.com/Gozala/type","repository":{"type":"git","url":"git://github.com/Gozala/type.git","web":"https://github.com/Gozala/type"},"bugs":{"url":"http://github.com/Gozala/type/issues/"},"devDependencies":{"test":">=0.4.0"},"directories":{"lib":"."},"scripts":{"test":"node tests/test-type.js"},"licenses":[{"type":"MIT","url":"http://jeditoolkit.com/LICENSE"}],"_npmUser":{"name":"gozala","email":"rfobic@gmail.com"},"_id":"type@0.0.2","dependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.101","_nodeVersion":"v0.5.9","_defaultsLoaded":true,"dist":{"shasum":"4726bad976d955b6fc4862238451d82a0648705e","size":10240,"noattachment":false,"key":"/type/-/type-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/type/download/type-0.0.2.tgz"},"maintainers":[{"name":"medikoo","email":""}],"publish_time":1330195318376,"_cnpm_publish_time":1330195318376,"_hasShrinkwrap":false},"0.0.1":{"name":"type","id":"type","version":"0.0.1","description":"Type utils","keywords":["types","utils","checks"],"author":{"name":"Irakli Gozalishvili","email":"rfobic@gmail.com","url":"http://jeditoolkit.com"},"homepage":"https://github.com/Gozala/type","repository":{"type":"git","url":"git://github.com/Gozala/type.git","web":"https://github.com/Gozala/type"},"bugs":{"url":"http://github.com/Gozala/type/issues/"},"devDependencies":{"test":">=0.0.10"},"directories":{"lib":"."},"engines":{"node":"0.4.x"},"scripts":{"test":"node tests/test-type.js"},"licenses":[{"type":"MIT","url":"http://jeditoolkit.com/LICENSE"}],"_id":"type@0.0.1","dependencies":{},"_engineSupported":true,"_npmVersion":"1.0.8","_nodeVersion":"v0.4.8","_defaultsLoaded":true,"dist":{"shasum":"b0204ee776b790769f307af8fbf513308a41433c","size":3403,"noattachment":false,"key":"/type/-/type-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/type/download/type-0.0.1.tgz"},"publish_time":1307661145475,"maintainers":[{"name":"medikoo","email":""}],"_cnpm_publish_time":1307661145475,"_hasShrinkwrap":false}},"readme":"[![Build status][build-image]][build-url]\n[![Tests coverage][cov-image]][cov-url]\n[![npm version][npm-image]][npm-url]\n\n# type\n\n## Runtime validation and processing of JavaScript types\n\n- Respects language nature and acknowledges its quirks\n- Allows coercion in restricted forms (rejects clearly invalid input, normalizes permissible type deviations)\n- No transpilation implied, written to work in all ECMAScript 3+ engines\n\n## Use case\n\nValidate arguments input in public API endpoints.\n\n_For validation of more sophisticated input structures (as deeply nested configuration objects) it's recommended to consider more powerful schema based utlities (as [AJV](https://ajv.js.org/) or [@hapi/joi](https://hapi.dev/family/joi/))_\n\n### Example usage\n\nBulletproof input arguments normalization and validation:\n\n```javascript\nconst ensureString        = require('type/string/ensure')\n    , ensureDate          = require('type/date/ensure')\n    , ensureNaturalNumber = require('type/natural-number/ensure')\n    , isObject            = require('type/object/is');\n\nmodule.exports = (path, options = { min: 0 }) {\n  path = ensureString(path, { errorMessage: \"%v is not a path\" });\n  if (!isObject(options)) options = {};\n  const min = ensureNaturalNumber(options.min, { default: 0 })\n      , max = ensureNaturalNumber(options.max, { isOptional: true })\n      , startTime = ensureDate(options.startTime, { isOptional: true });\n\n  // ...logic\n};\n```\n\n### Installation\n\n```bash\nnpm install type\n```\n\n## Utilities\n\nAside of general [`ensure`](docs/ensure.md) validation util, following kind of utilities for recognized JavaScript types are provided:\n\n##### `*/coerce`\n\nRestricted coercion into primitive type. Returns coerced value or `null` if value is not coercible per rules.\n\n##### `*/is`\n\nObject type/kind confirmation, returns either `true` or `false`.\n\n##### `*/ensure`\n\nValue validation. Returns input value (in primitive cases possibly coerced) or if value doesn't meet the constraints throws `TypeError` .\n\nEach `*/ensure` utility, accepts following options (eventually passed with second argument):\n\n- `isOptional` - Makes `null` or `undefined` accepted as valid value. In such case instead of `TypeError` being thrown, `null` is returned.\n- `default` - A value to be returned if `null` or `undefined` is passed as an input value.\n- `errorMessage` - Custom error message. Following placeholders can be used:\n  - `%v` - To be replaced with short string representation of invalid value\n  - `%n` - To be replaced with meaninfgul name (to be passed with `name` option) of validated value. Not effective if `name` option is not present\n- `errorCode` - Eventual error code to be exposed on `.code` error property\n- `name` - Meaningful name for validated value, to be used in error message, assuming it contains `%n` placeholder\n- `Error` - Alternative error constructor to be used (defaults to `TypeError`)\n\n### Index\n\n#### General utils:\n\n- [`ensure`](docs/ensure.md)\n\n#### Type specific utils:\n\n- **Value**\n  - [`value/is`](docs/value.md#valueis)\n  - [`value/ensure`](docs/value.md#valueensure)\n- **Object**\n  - [`object/is`](docs/object.md#objectis)\n  - [`object/ensure`](docs/object.md#objectensure)\n  - **Plain Object**\n    - [`plain-object/is`](docs/plain-object.md#plain-objectis)\n    - [`plain-object/ensure`](docs/plain-object.md#plain-objectensure)\n- **String**\n  - [`string/coerce`](docs/string.md#stringcoerce)\n  - [`string/ensure`](docs/string.md#stringensure)\n- **Number**\n  - [`number/coerce`](docs/number.md#numbercoerce)\n  - [`number/ensure`](docs/number.md#numberensure)\n  - **Finite Number**\n    - [`finite/coerce`](docs/finite.md#finitecoerce)\n    - [`finite/ensure`](docs/finite.md#finiteensure)\n  - **Integer Number**\n    - [`integer/coerce`](docs/integer.md#integercoerce)\n    - [`integer/ensure`](docs/integer.md#integerensure)\n  - **Safe Integer Number**\n    - [`safe-integer/coerce`](docs/safe-integer.md#safe-integercoerce)\n    - [`safe-integer/ensure`](docs/.md#safe-integerensure)\n  - **Natural Number**\n    - [`natural-number/coerce`](docs/natural-number.md#natural-numbercoerce)\n    - [`natural-number/ensure`](docs/natural-number.md#natural-numberensure)\n  - **Array Length**\n    - [`array-length/coerce`](docs/array-length.md#array-lengthcoerce)\n    - [`array-length/ensure`](docs/array-length.md#array-lengthensure)\n  - **Time Value**\n    - [`time-value/coerce`](docs/time-value.md#time-valuecoerce)\n    - [`time-value/ensure`](docs/time-value.md#time-valueensure)\n- **BigInt**\n  - [`big-int/coerce`](docs/big-int.md#big-intcoerce)\n  - [`big-int/ensure`](docs/big-int.md#big-intensure)\n- **Array Like**\n  - [`array-like/is`](docs/array-like.md#array-likeis)\n  - [`array-like/ensure`](docs/array-like.md#array-likeensure)\n  - **Array**\n    - [`array/is`](docs/array.md#arrayis)\n    - [`array/ensure`](docs/array.md#arrayensure)\n- **Iterable**\n  - [`iterable/is`](docs/iterable.md#iterableis)\n  - [`iterable/ensure`](docs/iterable.md#iterableensure)\n- **Set**\n  - [`set/is`](docs/set.md#setis)\n  - [`set/ensure`](docs/set.md#setensure)\n- **Map**\n  - [`map/is`](docs/map.md#mapis)\n  - [`map/ensure`](docs/map.md#mapensure)\n- **Date**\n  - [`date/is`](docs/date.md#dateis)\n  - [`date/ensure`](docs/date.md#dateensure)\n- **Function**\n  - [`function/is`](docs/function.md#functionis)\n  - [`function/ensure`](docs/function.md#functionensure)\n  - **Constructor**\n    - [`constructor/is`](docs/constructor.md#plain-functionis)\n    - [`constructor/ensure`](docs/constructor.md#plain-functionensure)\n  - **Plain Function**\n    - [`plain-function/is`](docs/plain-function.md#plain-functionis)\n    - [`plain-function/ensure`](docs/plain-function.md#plain-functionensure)\n- **Reg Exp**\n  - [`reg-exp/is`](docs/reg-exp.md#reg-expis)\n  - [`reg-exp/ensure`](docs/.md#reg-expensure)\n- **Thenable**\n  - [`thenable/is`](docs/thenable.md#thenableis)\n  - [`thenable/ensure`](docs/thenable.md#thenableensure)\n  - **Promise**\n    - [`promise/is`](docs/promise.md#promiseis)\n    - [`promise/ensure`](docs/promise.md#promiseensure)\n- **Error**\n  - [`error/is`](docs/error.md#erroris)\n  - [`error/ensure`](docs/error.md#errorensure)\n- **Prototype**\n  - [`prototype/is`](docs/prototype.md#prototypeis)\n\n### Tests\n\n    $ npm test\n\n[build-image]: https://github.com/medikoo/type/workflows/Integrate/badge.svg\n[build-url]: https://github.com/medikoo/type/actions?query=workflow%3AIntegrate\n[cov-image]: https://img.shields.io/codecov/c/github/medikoo/type.svg\n[cov-url]: https://codecov.io/gh/medikoo/type\n[npm-image]: https://img.shields.io/npm/v/type.svg\n[npm-url]: https://www.npmjs.com/package/type\n\n## Security contact information\n\nTo report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.\n","_attachments":{},"homepage":"https://github.com/medikoo/type#readme","bugs":{"url":"https://github.com/medikoo/type/issues"},"license":"ISC"}