{"_id":"validate-glob-opts","_rev":"13-3d6b530d19719343b0a0b79e6c888aa4","name":"validate-glob-opts","description":"Validate glob options","dist-tags":{"latest":"1.0.2"},"versions":{"0.0.0":{"name":"validate-glob-opts","version":"0.0.0","description":"Validate glob options","repository":{"type":"git","url":"git+https://github.com/shinnn/validate-glob-opts.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"eslint --fix --format=codeframe --rule='complexity: off' index.js test.js && buble index.js --output=index-es5.js --yes=dangerousForOf","test":"node --throw-deprecation test.js","coverage":"istanbul cover --print=both test.js"},"license":"MIT","main":"index-es5.js","files":["index-es5.js"],"keywords":["glob","option","validate","invalidate","check","type","strict"],"dependencies":{"is-plain-obj":"^1.1.0"},"devDependencies":{"@shinnn/eslint-config-node":"^3.0.0","buble":"^0.15.2","eslint":"^3.14.0","graceful-fs":"^4.1.11","istanbul":"^0.4.5","tape":"^4.6.3"},"eslintConfig":{"extends":"@shinnn/node"},"bugs":{"url":"https://github.com/shinnn/validate-glob-opts/issues"},"homepage":"https://github.com/shinnn/validate-glob-opts#readme","_id":"validate-glob-opts@0.0.0","_shasum":"f7f59728db66593b0144bd8550d9e49f7f1a5a17","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.4.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"shasum":"f7f59728db66593b0144bd8550d9e49f7f1a5a17","tarball":"https://registry.npmjs.org/validate-glob-opts/-/validate-glob-opts-0.0.0.tgz","integrity":"sha512-nFCT47EKu0i9VNlrVGs+7twWHGGPb02JKvGwvhIOKRcUlPlYVnzEOZeUiSnqp0fXABaRvon+8VK6HBwdvdGIgg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB2dA7j4Ubw+k2ytGi1vpvny00w1fBSkqSvTWM8vJ20pAiEA+KQvOK/MhxtljYUwq8wvELc9t4EKw71igl5YT4mHLLc="}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/validate-glob-opts-0.0.0.tgz_1485253234107_0.6168196385260671"},"directories":{}},"0.1.0":{"name":"validate-glob-opts","version":"0.1.0","description":"Validate glob options","repository":{"type":"git","url":"git+https://github.com/shinnn/validate-glob-opts.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"eslint --fix --format=codeframe --rule='complexity: off' index.js test.js && buble index.js --output=index-es5.js --yes=dangerousForOf","test":"node --throw-deprecation test.js","coverage":"istanbul cover --print=both test.js"},"license":"MIT","main":"index-es5.js","files":["index-es5.js"],"keywords":["glob","option","validate","invalidate","check","type","strict"],"dependencies":{"is-plain-obj":"^1.1.0"},"devDependencies":{"@shinnn/eslint-config-node":"^3.0.0","buble":"^0.15.2","eslint":"^3.14.0","graceful-fs":"^4.1.11","istanbul":"^0.4.5","tape":"^4.6.3"},"eslintConfig":{"extends":"@shinnn/node"},"gitHead":"2db4ed4e1fdf4a40d666ad6957fd5f9fe1c7fc65","bugs":{"url":"https://github.com/shinnn/validate-glob-opts/issues"},"homepage":"https://github.com/shinnn/validate-glob-opts#readme","_id":"validate-glob-opts@0.1.0","_shasum":"039e1a88b5af8ad6657b909ae40a5de13c228520","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.4.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"shasum":"039e1a88b5af8ad6657b909ae40a5de13c228520","tarball":"https://registry.npmjs.org/validate-glob-opts/-/validate-glob-opts-0.1.0.tgz","integrity":"sha512-raHwGHWlwGONLe9rDXlujseAxXyyHNqzmRozAQtaFUK2cLrvtqBClZtkDoD7i67B/h1PjWJhwmK0lnSvbhCRJw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC6Bf+XPxe34u7bwRXguj9Opb1/1Mf8tGP9DkXsRLWjaAiEAnoQr1NPl21PRkG36Xni0ceohDgF+I7MAr2R7zV/D3HM="}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/validate-glob-opts-0.1.0.tgz_1485254510241_0.6785968230105937"},"directories":{}},"0.2.0":{"name":"validate-glob-opts","version":"0.2.0","description":"Validate glob options","repository":{"type":"git","url":"git+https://github.com/shinnn/validate-glob-opts.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"eslint --fix --format=codeframe --rule='complexity: off' index.js test.js && buble index.js --output=index-es5.js --yes=dangerousForOf","test":"node --throw-deprecation test.js","coverage":"istanbul cover --print=both test.js"},"license":"MIT","main":"index-es5.js","files":["index-es5.js"],"keywords":["glob","option","validate","invalidate","check","type","strict"],"dependencies":{"is-plain-obj":"^1.1.0"},"devDependencies":{"@shinnn/eslint-config-node":"^3.0.0","buble":"^0.15.2","eslint":"^3.14.0","graceful-fs":"^4.1.11","istanbul":"^0.4.5","tape":"^4.6.3"},"eslintConfig":{"extends":"@shinnn/node"},"gitHead":"4cb73307ca901dad188516ba005d8af9b2c37e02","bugs":{"url":"https://github.com/shinnn/validate-glob-opts/issues"},"homepage":"https://github.com/shinnn/validate-glob-opts#readme","_id":"validate-glob-opts@0.2.0","_shasum":"66720b9b8e8dbe84af7c798ac790ece211b62489","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.4.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"shasum":"66720b9b8e8dbe84af7c798ac790ece211b62489","tarball":"https://registry.npmjs.org/validate-glob-opts/-/validate-glob-opts-0.2.0.tgz","integrity":"sha512-/vubbFEn8DZjm4WLYIF0ci9HKX7aRVZZMGr8IWZcYRPjkYuGXKvHzFPktBBK9NIHh/5uobCdrEFQ1/wUqm77hg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOoXI4H2DpBWvJqu6KuWIAjQqXID/8RoFaBR4SgGsEIAIgBI9WlXD6vfQqs1ADzLfLQ18zhaj6LCXZxDiRgjtUeGQ="}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/validate-glob-opts-0.2.0.tgz_1485336423767_0.7484305638354272"},"directories":{}},"0.2.1":{"name":"validate-glob-opts","version":"0.2.1","description":"Validate glob options","repository":{"type":"git","url":"git+https://github.com/shinnn/validate-glob-opts.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"eslint --fix --format=codeframe --rule='complexity: off' index.js test.js && buble index.js --output=index-es5.js --yes=dangerousForOf","test":"node --throw-deprecation test.js","coverage":"istanbul cover --print=both test.js"},"license":"MIT","main":"index-es5.js","files":["index-es5.js"],"keywords":["glob","option","validate","invalidate","check","type","strict"],"dependencies":{"is-plain-obj":"^1.1.0"},"devDependencies":{"@shinnn/eslint-config-node":"^3.0.0","buble":"^0.15.2","eslint":"^3.14.1","graceful-fs":"^4.1.11","istanbul":"^0.4.5","tape":"^4.6.3"},"eslintConfig":{"extends":"@shinnn/node"},"gitHead":"a72621b605c9e2c2cf60d09365f12ed80272670b","bugs":{"url":"https://github.com/shinnn/validate-glob-opts/issues"},"homepage":"https://github.com/shinnn/validate-glob-opts#readme","_id":"validate-glob-opts@0.2.1","_shasum":"4ffa23ea096db0381f28edbf5c283fa40fb75b07","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.4.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"shasum":"4ffa23ea096db0381f28edbf5c283fa40fb75b07","tarball":"https://registry.npmjs.org/validate-glob-opts/-/validate-glob-opts-0.2.1.tgz","integrity":"sha512-/TVArUFeylE4Cmx1bFWl4ypvQOD0FY1Iv7hGYg1aWNONSnX9ePPZaIlzcyOgwiIlMDfNmsuguNWpnB+vgE0PYQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZ2MX8mZJn7LNTxjg7aCnmnx0XQRVe679O4veC5lrjfQIgRgFGd6uGEJOw5Kr2DX5O0UwNeZ7OFPC9gnN7hchPy9U="}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/validate-glob-opts-0.2.1.tgz_1485761536938_0.18802710762247443"},"directories":{}},"0.3.0":{"name":"validate-glob-opts","version":"0.3.0","description":"Validate glob options","repository":{"type":"git","url":"git+https://github.com/shinnn/validate-glob-opts.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"eslint --fix --format=codeframe index.js test.js","test":"node --throw-deprecation test.js","coverage":"istanbul cover --print=both test.js"},"license":"MIT","files":["index.js"],"keywords":["glob","option","validate","invalidate","check","type","strict"],"dependencies":{"is-plain-obj":"^1.1.0"},"devDependencies":{"@shinnn/eslint-config-node":"^3.0.0","eslint":"^3.14.1","graceful-fs":"^4.1.11","istanbul":"^0.4.5","tape":"^4.6.3"},"eslintConfig":{"extends":"@shinnn/node","rules":{"complexity":"off"}},"gitHead":"d5456e7061f9c7b9e381ab5a7ee2974ae51f91f0","bugs":{"url":"https://github.com/shinnn/validate-glob-opts/issues"},"homepage":"https://github.com/shinnn/validate-glob-opts#readme","_id":"validate-glob-opts@0.3.0","_shasum":"1a06d198f0662a14f63c8574e0cb0c8f26c69ec4","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.4.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"shasum":"1a06d198f0662a14f63c8574e0cb0c8f26c69ec4","tarball":"https://registry.npmjs.org/validate-glob-opts/-/validate-glob-opts-0.3.0.tgz","integrity":"sha512-kG0lm/bbjMAbzwKnHVQYlui1vP+EmYicu4kNVvdvArZ0XfScHvg9N+Gj7fKcaUvfl2me94Ngh2fMZTEEEVqwSw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsLuehCMoOQyaDRRr86mCkOriJ18QmJGbiooq05QZdCgIhAKV+dvG2KgvNK4ZR7RnLUNDWzt/MT9GYpCLHacx/fURy"}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/validate-glob-opts-0.3.0.tgz_1485925987523_0.5203950456343591"},"directories":{}},"0.4.0":{"name":"validate-glob-opts","version":"0.4.0","description":"Validate glob options","repository":{"type":"git","url":"git+https://github.com/shinnn/validate-glob-opts.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"eslint --fix --format=codeframe index.js test.js","test":"node --throw-deprecation test.js","coverage":"istanbul cover --print=both test.js"},"license":"MIT","files":["index.js"],"keywords":["glob","option","validate","invalidate","check","type","strict"],"dependencies":{"array-to-sentence":"^1.1.0","indexed-filter":"^1.0.0","is-plain-obj":"^1.1.0"},"devDependencies":{"@shinnn/eslint-config-node":"^3.0.0","eslint":"^3.14.1","graceful-fs":"^4.1.11","istanbul":"^0.4.5","tape":"^4.6.3"},"eslintConfig":{"extends":"@shinnn/node","rules":{"complexity":"off"}},"gitHead":"b7a88dcccc7647fba4260566830799a4201eaca1","bugs":{"url":"https://github.com/shinnn/validate-glob-opts/issues"},"homepage":"https://github.com/shinnn/validate-glob-opts#readme","_id":"validate-glob-opts@0.4.0","_shasum":"e6898e521aad06ade618529e3d8f5e6db6b5be8b","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.4.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"shasum":"e6898e521aad06ade618529e3d8f5e6db6b5be8b","tarball":"https://registry.npmjs.org/validate-glob-opts/-/validate-glob-opts-0.4.0.tgz","integrity":"sha512-9COfuXJkQxIH+sM+eY8vEHssOcYjKHOMz+rg7A/01gC62cJ4lvR+v4+cjCzKN8FWy3EMSi30P3zVsVMu/md5FA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFonHiOJwxn1mEDhEQ6M8itZ+kDWY8gZHPcUOhhs+4x/AiEAxqBLqoI3G8YaFV4lAnjR6La/+9Hpv3zS4F85zRTsdyg="}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/validate-glob-opts-0.4.0.tgz_1485944730135_0.495639874599874"},"directories":{}},"0.5.0":{"name":"validate-glob-opts","version":"0.5.0","description":"Validate glob options","repository":{"type":"git","url":"git+https://github.com/shinnn/validate-glob-opts.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"eslint --fix --format=codeframe index.js test.js","test":"node --throw-deprecation test.js","coverage":"istanbul cover --print=both test.js"},"license":"MIT","files":["index.js"],"keywords":["glob","option","validate","invalidate","check","type","strict"],"dependencies":{"array-to-sentence":"^1.1.0","indexed-filter":"^1.0.0","inspect-with-kind":"^1.0.0","is-plain-obj":"^1.1.0"},"devDependencies":{"@shinnn/eslint-config-node":"^3.0.0","eslint":"^3.19.0","graceful-fs":"^4.1.11","istanbul":"^0.4.5","tape":"^4.6.3"},"eslintConfig":{"extends":"@shinnn/node"},"gitHead":"a32b7051385771d7976c0dea9e7cd372e2bdc15f","bugs":{"url":"https://github.com/shinnn/validate-glob-opts/issues"},"homepage":"https://github.com/shinnn/validate-glob-opts#readme","_id":"validate-glob-opts@0.5.0","_shasum":"913f57a38305444232eb981dd4e1f3705ecce28e","_from":".","_npmVersion":"4.6.1","_nodeVersion":"7.10.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"shasum":"913f57a38305444232eb981dd4e1f3705ecce28e","tarball":"https://registry.npmjs.org/validate-glob-opts/-/validate-glob-opts-0.5.0.tgz","integrity":"sha512-YZCNbR5P1kPgtqUXTkgT1V04wHk8txicSWt+nR8CTt2xjfMfgvxkm5+Tq30SV76qpvDys+anQ7LXjwJ5dzP1Bg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCn3+PZuMqibJ1n0dMBde56aEF1jNYr1rpSN3xgxbyAowIgBTcrRxFh+9xqN3ugIYeL5C1EluGtaD/w79ZSsHANHhc="}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/validate-glob-opts-0.5.0.tgz_1494913780472_0.06537516391836107"},"directories":{}},"1.0.0":{"name":"validate-glob-opts","version":"1.0.0","description":"Validate glob options","repository":{"type":"git","url":"git+https://github.com/shinnn/validate-glob-opts.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"eslint --fix --format=codeframe index.js test.js","test":"node --throw-deprecation test.js","coverage":"istanbul cover --print=both test.js"},"license":"MIT","files":["index.js"],"keywords":["glob","option","validate","invalidate","check","type","strict"],"dependencies":{"array-to-sentence":"^1.1.0","indexed-filter":"^1.0.0","inspect-with-kind":"^1.0.0","is-plain-obj":"^1.1.0"},"devDependencies":{"@shinnn/eslint-config-node":"^3.0.0","eslint":"^3.19.0","graceful-fs":"^4.1.11","istanbul":"^0.4.5","tape":"^4.6.3"},"eslintConfig":{"extends":"@shinnn/node"},"gitHead":"6359b6aa8c11898ef4856fc6fdbac72acb3af3bd","bugs":{"url":"https://github.com/shinnn/validate-glob-opts/issues"},"homepage":"https://github.com/shinnn/validate-glob-opts#readme","_id":"validate-glob-opts@1.0.0","_shasum":"79cb426462d6cb241e7e8f5cb75b3b58fa09f68b","_from":".","_npmVersion":"4.6.1","_nodeVersion":"7.10.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"shasum":"79cb426462d6cb241e7e8f5cb75b3b58fa09f68b","tarball":"https://registry.npmjs.org/validate-glob-opts/-/validate-glob-opts-1.0.0.tgz","integrity":"sha512-l/MzRwoAyeQx2ke6NaXFxjh+YicWLEje6cviaVgi9gw99gZHMvJcI3rXt2Cb0zsVq4PMmy1MMLcOAE7JEqF9DA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWHmxFgindW7iXuC8vxUW+TPbRUtPnEm3OfLybKr3qRgIhAKVNRAnD1zez0IEvmRo167XmTRZZdJnLo122L1c1O0lD"}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/validate-glob-opts-1.0.0.tgz_1494916802565_0.8153745024465024"},"directories":{}},"1.0.1":{"name":"validate-glob-opts","version":"1.0.1","description":"Validate glob options","repository":{"type":"git","url":"git+https://github.com/shinnn/validate-glob-opts.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"eslint --fix --format=codeframe index.js test.js","test":"nyc --reporter=html --reporter=text node test.js"},"license":"ISC","files":["index.js"],"keywords":["glob","option","validate","invalidate","check","type","strict"],"dependencies":{"array-to-sentence":"^1.1.0","indexed-filter":"^1.0.0","inspect-with-kind":"^1.0.4","is-plain-obj":"^1.1.0"},"devDependencies":{"@shinnn/eslint-config-node":"^5.0.0","eslint":"^4.17.0","graceful-fs":"^4.1.11","nyc":"^11.4.1","tape":"^4.8.0"},"eslintConfig":{"extends":"@shinnn/node"},"gitHead":"25dba771ee61922f5ca3c4fc21bccf230ceb6a9a","bugs":{"url":"https://github.com/shinnn/validate-glob-opts/issues"},"homepage":"https://github.com/shinnn/validate-glob-opts#readme","_id":"validate-glob-opts@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"integrity":"sha512-whxmwPKYUOClb8Ohp+awGGA9xW8STbk0A9BbwgqEHzmzfULFFC3ozW5gsORpAyE00ff26dEmEybgtFxSyYvUPw==","shasum":"0797b601230dd03df95e692e2b75f5ede0133808","tarball":"https://registry.npmjs.org/validate-glob-opts/-/validate-glob-opts-1.0.1.tgz","fileCount":4,"unpackedSize":12283,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBlZeicOS7ANEzvzaGWP/h8lLAq7JT9CLvwgl01I6ie7AiEAhbSTh3tO6++RwCAOIHYsPyrWUg5/rEyZU1Ra35+DmSY="}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/validate-glob-opts_1.0.1_1518084681878_0.6346052506665238"},"_hasShrinkwrap":false},"1.0.2":{"name":"validate-glob-opts","version":"1.0.2","description":"Validate glob options","repository":{"type":"git","url":"git+https://github.com/shinnn/validate-glob-opts.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"eslint --fix --format=codeframe index.js test.js","test":"nyc --reporter=html --reporter=text node test.js"},"license":"ISC","files":["index.js"],"keywords":["glob","option","validate","invalidate","check","type","strict"],"dependencies":{"array-to-sentence":"^1.1.0","indexed-filter":"^1.0.0","inspect-with-kind":"^1.0.4","is-plain-obj":"^1.1.0"},"devDependencies":{"@shinnn/eslint-config-node":"^5.0.0","eslint":"^4.17.0","graceful-fs":"^4.1.11","nyc":"^11.4.1","tape":"^4.8.0"},"eslintConfig":{"extends":"@shinnn/node"},"gitHead":"59a17d6ad70350d7d79ffca17c3e477a20a1f3ea","bugs":{"url":"https://github.com/shinnn/validate-glob-opts/issues"},"homepage":"https://github.com/shinnn/validate-glob-opts#readme","_id":"validate-glob-opts@1.0.2","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"integrity":"sha512-3PKjRQq/R514lUcG9OEiW0u9f7D4fP09A07kmk1JbNn2tfeQdAHhlT+A4dqERXKu2br2rrxSM3FzagaEeq9w+A==","shasum":"ef9f98977d965537ea4f51fa7d5799e9c6ebca91","tarball":"https://registry.npmjs.org/validate-glob-opts/-/validate-glob-opts-1.0.2.tgz","fileCount":4,"unpackedSize":12573,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLbfl0bR6WPJ6a8MFwq+ABJmX34xTEv+K2nDrmHfhkRwIhAPJLM2+4K3WZiqsUYPOZnA2UyIQxxvyqoob3hIV7pINW"}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/validate-glob-opts_1.0.2_1518087084849_0.7625313504191042"},"_hasShrinkwrap":false}},"readme":"# validate-glob-opts\n\n[![npm version](https://img.shields.io/npm/v/validate-glob-opts.svg)](https://www.npmjs.com/package/validate-glob-opts)\n[![Build Status](https://travis-ci.org/shinnn/validate-glob-opts.svg?branch=master)](https://travis-ci.org/shinnn/validate-glob-opts)\n[![Coverage Status](https://img.shields.io/coveralls/shinnn/validate-glob-opts.svg)](https://coveralls.io/r/shinnn/validate-glob-opts)\n\nValidate [node-glob](https://github.com/isaacs/node-glob) options\n\n```javascript\nvalidateGlobOpts({\n  sync: true,\n  mark: '/',\n  caches: {}\n});\n/* => [\n  Error: `sync` option is deprecated and there’s no need to pass any values to that option, but true was provided.,\n  TypeError: node-glob expected `mark` option to be a Boolean value, but got '/' (string).,\n  Error: node-glob doesn't have `caches` option. Probably you meant `cache`.\n] */\n```\n\n## Installation\n\n[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/getting-started/what-is-npm).\n\n```\nnpm install validate-glob-opts\n```\n\n## API\n\n```javascript\nconst validateGlobOpts = require('validate-glob-opts');\n```\n\n### validateGlobOpts(*obj* [, *customValidations*])\n\n*obj*: `Object` ([`glob` options](https://github.com/isaacs/node-glob#options))  \n*customValidations*: `Array<function>`  \nReturn: `Array<Error>`\n\nIt strictly validates `glob` options, for example,\n\n* It disallows the deprecated `sync` option to receive any values.\n* It disallows String options e.g. `cwd` to receive non-string values.\n* It disallows Boolean options e.g. `stat` to receive non-boolean values.\n* It disallows Object options e.g. `symlinks` to receive non-object values.\n* It invalidates probably typoed option names e.g. `symlink`.\n\nThen, it returns the validation result as an array of error objects.\n\n```javascript\nconst validateGlobOpts = require('validate-glob-opts');\n\nconst ok = {\n  root: '/foo/bar/',\n  nodir: true,\n  ignore: ['path1', 'path2'],\n  symlinks: {}\n};\n\nvalidateGlobOpts(ok); //=> []\n\nconst notOk = {\n  root: Buffer.from('Hi'),\n  nodir: NaN,\n  ignore: ['path1', 1],\n  symlink: {}\n};\n\nconst results = validateGlobOpts(notOk);\nresults.length; //=> 4\nresults[0];\n//=>  TypeError: node-glob expected `root` option to be a directory path (string), but got <Buffer 48 69>.\nresults[1];\n//=> TypeError: node-glob expected `nodir` option to be a Boolean value, but got NaN (number).\nresults[2];\n//=> TypeError: Expected every value in the `ignore` option to be a string, but the array includes a non-string value 1 (number).\nresults[3];\n//=> Error: node-glob doesn't have `symlink` option. Probably you meant `symlinks`.\n```\n\n#### User-defined validation\n\nYou can provide your own validations by passing an array of functions to the second parameter. Each function receives the object and should return an error when the object is not valid.\n\n```javascript\nvalidateGlobOpts({realPath: true, nodir: true});\n/*=> [\n  Error: node-glob doesn't have `realPath` option. Probably you meant `realpath`.\n] */\n\nvalidateGlobOpts({realPath: true, nodir: true}, [\n  obj => obj.nodir ? new Error('My app doesn\\'t support `nodir` option.') : null\n]);\n/*=> [\n  Error: node-glob doesn't have `realPath` option. Probably you meant `realpath`.\n  TypeError: My app doesn't support `nodir` option.\n] */\n```\n\n## License\n\n[ISC License](./LICENSE) © 2018 Shinnosuke Watanabe\n","maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"time":{"modified":"2022-06-28T08:27:22.595Z","created":"2017-01-24T10:20:35.829Z","0.0.0":"2017-01-24T10:20:35.829Z","0.1.0":"2017-01-24T10:41:52.006Z","0.2.0":"2017-01-25T09:27:05.501Z","0.2.1":"2017-01-30T07:32:17.168Z","0.3.0":"2017-02-01T05:13:09.338Z","0.4.0":"2017-02-01T10:25:30.375Z","0.5.0":"2017-05-16T05:49:42.309Z","1.0.0":"2017-05-16T06:40:05.244Z","1.0.1":"2018-02-08T10:11:21.985Z","1.0.2":"2018-02-08T10:51:24.992Z"},"homepage":"https://github.com/shinnn/validate-glob-opts#readme","keywords":["glob","option","validate","invalidate","check","type","strict"],"repository":{"type":"git","url":"git+https://github.com/shinnn/validate-glob-opts.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"bugs":{"url":"https://github.com/shinnn/validate-glob-opts/issues"},"license":"ISC","readmeFilename":"README.md"}