{"_id":"assert-valid-glob-opts","_rev":"8-31bf83b6b7b37f6d57f9a5096c47e321","name":"assert-valid-glob-opts","description":"Assert a given object is a valid glob option","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.0":{"name":"assert-valid-glob-opts","version":"0.0.0","description":"Assert a given object is a valid glob option","repository":{"type":"git","url":"git+https://github.com/shinnn/assert-valid-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","error","throw","assert","assertion","strict"],"dependencies":{"validate-glob-opts":"^0.1.0"},"devDependencies":{"@shinnn/eslint-config-node-legacy":"^3.0.0","eslint":"^3.14.0","istanbul":"^0.4.5","tape":"^4.6.3"},"eslintConfig":{"extends":"@shinnn/node-legacy"},"bugs":{"url":"https://github.com/shinnn/assert-valid-glob-opts/issues"},"homepage":"https://github.com/shinnn/assert-valid-glob-opts#readme","_id":"assert-valid-glob-opts@0.0.0","_shasum":"98e1dfcb42cff1ed088645658ebec631c0f3de3b","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.4.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"shasum":"98e1dfcb42cff1ed088645658ebec631c0f3de3b","tarball":"https://registry.npmjs.org/assert-valid-glob-opts/-/assert-valid-glob-opts-0.0.0.tgz","integrity":"sha512-ragybAI1yShk8amJ9G9+I6oise5IWpeiajRIKzbKBpYDq7bUC2FvRPI82yiSB3vCtLutwp3vxrUMSNOiReP+Gw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDzJTlgs78Un5xioTam/WC1LZzM+fm9j2qHq0vT7HNKLAiEAqabGoWef5VT5sEvcSS2XvBpXvlkZIp0k9U1wc2X0Sjo="}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/assert-valid-glob-opts-0.0.0.tgz_1485258798558_0.6917287507094443"}},"0.1.0":{"name":"assert-valid-glob-opts","version":"0.1.0","description":"Assert a given object is a valid glob option","repository":{"type":"git","url":"git+https://github.com/shinnn/assert-valid-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","error","throw","assert","assertion","strict"],"dependencies":{"validate-glob-opts":"^0.2.0"},"devDependencies":{"@shinnn/eslint-config-node-legacy":"^3.0.0","eslint":"^3.14.0","istanbul":"^0.4.5","tape":"^4.6.3"},"eslintConfig":{"extends":"@shinnn/node-legacy"},"gitHead":"30f31cf4a1878227689989ad7815ad524d580a87","bugs":{"url":"https://github.com/shinnn/assert-valid-glob-opts/issues"},"homepage":"https://github.com/shinnn/assert-valid-glob-opts#readme","_id":"assert-valid-glob-opts@0.1.0","_shasum":"2b63346ac46fdc1cdca2e24104933e1959359851","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.4.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"shasum":"2b63346ac46fdc1cdca2e24104933e1959359851","tarball":"https://registry.npmjs.org/assert-valid-glob-opts/-/assert-valid-glob-opts-0.1.0.tgz","integrity":"sha512-m9Bn88YNdWaIUqPqyuKMYxPJEU8GMdPamhzNhIfc6/7v5lKDa/arItpA4Sv3xAgN8+8MYbubolrEl+vMRlsthw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNNxWOOH9gETWC+GbPwtt87V09eQR30kOfvGs1c/c0NgIhAJUjNtZClg5ddwNeYkY90H6ycxxfplMundvp4lD/etXK"}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/assert-valid-glob-opts-0.1.0.tgz_1485339485301_0.17477011936716735"}},"0.2.0":{"name":"assert-valid-glob-opts","version":"0.2.0","description":"Assert a given object is a valid glob option","repository":{"type":"git","url":"git+https://github.com/shinnn/assert-valid-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","error","throw","assert","assertion","strict"],"dependencies":{"validate-glob-opts":"^0.2.1"},"devDependencies":{"@shinnn/eslint-config-node":"^3.0.0","eslint":"^3.16.1","istanbul":"^0.4.5","tape":"^4.6.3"},"eslintConfig":{"extends":"@shinnn/node"},"gitHead":"ba2ec8f32b0fd92aa008cf7d6bec7a52aa4e90f4","bugs":{"url":"https://github.com/shinnn/assert-valid-glob-opts/issues"},"homepage":"https://github.com/shinnn/assert-valid-glob-opts#readme","_id":"assert-valid-glob-opts@0.2.0","_shasum":"c39b2e9e4d224482b92cc1c417130c272cd5ef8c","_from":".","_npmVersion":"4.3.0","_nodeVersion":"7.7.1","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"shasum":"c39b2e9e4d224482b92cc1c417130c272cd5ef8c","tarball":"https://registry.npmjs.org/assert-valid-glob-opts/-/assert-valid-glob-opts-0.2.0.tgz","integrity":"sha512-78Jh6PJFFrm2ph6zB7cw59PsCE3f7Vl1IooNq4TXLwsOBO3IB6yqCSUgwl/a7E7VHYEstCFrjlWWMylhKCeBEQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCSsjtCglWXK7r1srzYOQjL9EEWF1guaNniQyllsQNQ5AIhALM++OZtAQsQ8+dnxXowxmShqSSeDk4m7/p2NCdnLKVE"}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/assert-valid-glob-opts-0.2.0.tgz_1488522873992_0.5646609961986542"}},"0.3.0":{"name":"assert-valid-glob-opts","version":"0.3.0","description":"Assert a given object is a valid glob option","repository":{"type":"git","url":"git+https://github.com/shinnn/assert-valid-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","error","throw","assert","assertion","strict"],"dependencies":{"glob-option-error":"^0.1.0","validate-glob-opts":"^0.4.0"},"devDependencies":{"@shinnn/eslint-config-node":"^3.0.0","eslint":"^3.19.0","istanbul":"^0.4.5","tape":"^4.6.3"},"eslintConfig":{"extends":"@shinnn/node"},"gitHead":"68115de5ad74ca2ac85825fabc2b8754f794648c","bugs":{"url":"https://github.com/shinnn/assert-valid-glob-opts/issues"},"homepage":"https://github.com/shinnn/assert-valid-glob-opts#readme","_id":"assert-valid-glob-opts@0.3.0","_shasum":"e6d6eab9d99f9ff496048740085d37d0c4237fee","_from":".","_npmVersion":"4.6.1","_nodeVersion":"7.10.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"shasum":"e6d6eab9d99f9ff496048740085d37d0c4237fee","tarball":"https://registry.npmjs.org/assert-valid-glob-opts/-/assert-valid-glob-opts-0.3.0.tgz","integrity":"sha512-IG7hLK1DsqRcNGmsdeDXiG7M/nzFjLX120Vw9PigBUuJ9trf0CMSTMyfXpBuMpdvj/bD/f0KezOs0NAPlV+DzQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9oXapgFIgtQ+hs2fqa0jFCqKf5Qdh7cka4CuGhx3NKQIgYEzKzWfJ5O31zo+YbFTonQh/r5zDko13m4fREQ72hvM="}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/assert-valid-glob-opts-0.3.0.tgz_1495024990177_0.6026395547669381"}},"0.4.0":{"name":"assert-valid-glob-opts","version":"0.4.0","description":"Assert a given object is a valid glob option","repository":{"type":"git","url":"git+https://github.com/shinnn/assert-valid-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","error","throw","assert","assertion","strict"],"dependencies":{"glob-option-error":"^1.0.0","validate-glob-opts":"^1.0.0"},"devDependencies":{"@shinnn/eslint-config-node":"^3.0.0","eslint":"^3.19.0","istanbul":"^0.4.5","tape":"^4.6.3"},"eslintConfig":{"extends":"@shinnn/node"},"gitHead":"d352971b4f211c74f3f5326df7519e288e173f0b","bugs":{"url":"https://github.com/shinnn/assert-valid-glob-opts/issues"},"homepage":"https://github.com/shinnn/assert-valid-glob-opts#readme","_id":"assert-valid-glob-opts@0.4.0","_npmVersion":"5.0.0","_nodeVersion":"7.10.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"integrity":"sha512-o62CDl8pk5QYOGLvc5lVtOqxHujzhpVX/aGVSAKSBHH6MWXJHMdJZ66YPFPwYvGRUvu1GpGCyPnoVmYOuPDnbw==","shasum":"63614c93bdc7128c22c0e48b0bcce4a1508e7c63","tarball":"https://registry.npmjs.org/assert-valid-glob-opts/-/assert-valid-glob-opts-0.4.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZL1SQJ3W1On3DI5AgSeNXfRwl/neFj2ETAwu7ri7UDAIgDJ3SbxfmjrFtGBgj6+BAsZ+a3IhQJCOqxe5IxCNAavw="}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/assert-valid-glob-opts-0.4.0.tgz_1495799985921_0.028402400901541114"}},"1.0.0":{"name":"assert-valid-glob-opts","version":"1.0.0","description":"Assert a given object is a valid glob option","repository":{"type":"git","url":"git+https://github.com/shinnn/assert-valid-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":"CC0-1.0","files":["index.js"],"keywords":["glob","option","validate","invalidate","check","type","error","throw","assert","assertion","strict"],"dependencies":{"glob-option-error":"^1.0.0","validate-glob-opts":"^1.0.0"},"devDependencies":{"@shinnn/eslint-config-node":"^3.0.0","eslint":"^3.19.0","istanbul":"^0.4.5","tape":"^4.6.3"},"eslintConfig":{"extends":"@shinnn/node"},"gitHead":"20235abc4a9374aa8e92afd9df6fe4664bb947e7","bugs":{"url":"https://github.com/shinnn/assert-valid-glob-opts/issues"},"homepage":"https://github.com/shinnn/assert-valid-glob-opts#readme","_id":"assert-valid-glob-opts@1.0.0","_npmVersion":"5.0.0","_nodeVersion":"7.10.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"integrity":"sha512-/mttty5Xh7wE4o7ttKaUpBJl0l04xWe3y6muy1j27gyzSsnceK0AYU9owPtUoL9z8+9hnPxztmuhdFZ7jRoyWw==","shasum":"ab9b5438ec5e929f5bb08201819affb1227f730a","tarball":"https://registry.npmjs.org/assert-valid-glob-opts/-/assert-valid-glob-opts-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEND6prFamm36k7/hlGnLBbb+DIyEfeOtnM82+2aJGKvAiAJTkm6lJRcQlcZAEK2beipkdfD0N+DOEOCUxYs5gtkkQ=="}]},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/assert-valid-glob-opts-1.0.0.tgz_1496050397182_0.8927865233272314"}}},"readme":"# assert-valid-glob-opts\n\n[![NPM version](https://img.shields.io/npm/v/assert-valid-glob-opts.svg)](https://www.npmjs.com/package/assert-valid-glob-opts)\n[![Build Status](https://travis-ci.org/shinnn/assert-valid-glob-opts.svg?branch=master)](https://travis-ci.org/shinnn/assert-valid-glob-opts)\n[![Coverage Status](https://img.shields.io/coveralls/shinnn/assert-valid-glob-opts.svg)](https://coveralls.io/r/shinnn/assert-valid-glob-opts)\n\nAssert a given object is a valid [node-glob](https://github.com/isaacs/node-glob) option\n\n```javascript\nassertValidGlobOpts({\n  sync: true,\n  ignore: /node_modules/\n});\n```\n\n```\nTypeError: 2 errors found in the glob options:\n  1. `sync` option is deprecated and there’s no need to pass any values to that option, but true was provided.\n  2. node-glob expected `ignore` option to be an array or string, but got /node_modules/.\n    at assertValidGlobOpts (/Users/shinnn/example/index.js:29:9)\n    at Object.<anonymous> (/Users/shinnn/example/app.js:2:1)\n    at Module._compile (module.js:571:32)\n    at Object.Module._extensions..js (module.js:580:10)\n    at Module.load (module.js:488:32)\n    at tryModuleLoad (module.js:447:12)\n    at Function.Module._load (module.js:439:3)\n    at Module.runMain (module.js:605:10)\n    at run (bootstrap_node.js:420:7)\n    at startup (bootstrap_node.js:139:9)\n```\n\n## Installation\n\n[Use npm.](https://docs.npmjs.com/cli/install)\n\n```\nnpm install assert-valid-glob-opts\n```\n\n## API\n\n```javascript\nconst assertValidGlobOpts = require('assert-valid-glob-opts');\n```\n\n### assertValidGlobOpts(*obj* [, *customValidations*])\n\n*obj*: `Object` ([`glob` options](https://github.com/isaacs/node-glob#options))  \n*customValidations*: `Array<Function>` (passed to [`validate-glob-opts`](https://github.com/shinnn/validate-glob-opts#validategloboptsobj--customvalidations))\n\nIt validates a given object with [validate-glob-opts](https://github.com/shinnn/validate-glob-opts) and throws an error if the value is not valid.\n\n```javascript\nconst assertValidGlobOpts = require('assert-valid-glob-opts');\n\nconst ok = {\n  mark: true,\n  matchBase: false\n};\n\nassertValidGlobOpts(ok); // doesn't throw\n\nconst notOk = {\n  mark: 'true',\n  matchbase: false\n};\n\nassertValidGlobOpts(notOk); // throws an error\n```\n\n## License\n\n[Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/deed)\n","maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"time":{"modified":"2022-06-13T03:33:49.048Z","created":"2017-01-24T11:53:20.170Z","0.0.0":"2017-01-24T11:53:20.170Z","0.1.0":"2017-01-25T10:18:07.082Z","0.2.0":"2017-03-03T06:34:35.749Z","0.3.0":"2017-05-17T12:43:10.448Z","0.4.0":"2017-05-26T11:59:45.990Z","1.0.0":"2017-05-29T09:33:17.252Z"},"homepage":"https://github.com/shinnn/assert-valid-glob-opts#readme","keywords":["glob","option","validate","invalidate","check","type","error","throw","assert","assertion","strict"],"repository":{"type":"git","url":"git+https://github.com/shinnn/assert-valid-glob-opts.git"},"author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"bugs":{"url":"https://github.com/shinnn/assert-valid-glob-opts/issues"},"license":"CC0-1.0","readmeFilename":"README.md"}