{"_id":"express-version-request","_rev":"13-d6dbe5162213254cbc6994d9407dfb10","name":"express-version-request","description":"versions an incoming request to Express based on header or URL","dist-tags":{"latest":"1.7.0"},"versions":{"1.0.0":{"name":"express-version-request","version":"1.0.0","description":"versions an incoming request to Express based on header or URL","main":"index.js","scripts":{"lint":"eslint *.js","test":"yarn lint && ava","test:watch":"yarn lint && ava --watch","test:coverage":"yarn run lint && nyc --reporter=lcov ava --tap","coverage:view":"opn coverage/lcov-report/index.html","commit":"git-cz","docs":"yarn run docs:code && yarn run docs:api","docs:api":"doxdox *.js --layout bootstrap --output docs/index.html","docs:code":"docco *.js --output docs/code"},"keywords":["express","api","version","versioned","versioning","routing","router","api versioning","api version","header"],"author":{"name":"Liran Tal"},"license":"MIT","devDependencies":{"ava":"^0.17.0","commitizen":"^2.9.5","cz-conventional-changelog":"^1.2.0","docco":"^0.7.0","doxdox":"^2.0.1","eslint":"^3.19.0","eslint-config-standard":"^10.2.1","eslint-plugin-ava":"^4.2.0","eslint-plugin-import":"^2.2.0","eslint-plugin-node":"^4.2.2","eslint-plugin-security":"^1.3.0","nyc":"^10.1.2","opn-cli":"^3.1.0","standard":"^10.0.2"},"nyc":{"statements":90,"branches":90,"functions":90,"lines":90,"reporter":["lcov","text-summary"],"cache":true,"check-coverage":true},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"eslintConfig":{"env":{"node":true,"es6":true},"plugins":["node","security","ava"],"extends":["eslint-config-standard","plugin:ava/recommended","plugin:node/recommended"],"rules":{"node/no-unsupported-features":"off","node/no-unpublished-require":"off","security/detect-non-literal-fs-filename":"error","security/detect-unsafe-regex":"error","security/detect-buffer-noassert":"error","security/detect-child-process":"error","security/detect-disable-mustache-escape":"error","security/detect-eval-with-expression":"error","security/detect-no-csrf-before-method-override":"error","security/detect-non-literal-regexp":"error","security/detect-non-literal-require":"error","security/detect-object-injection":"error","security/detect-possible-timing-attacks":"error","security/detect-pseudoRandomBytes":"error"},"parserOptions":{"ecmaFeatures":{"impliedStrict":true}}},"gitHead":"7b65a521e08883686ecb405385a61cb34f990d90","_id":"express-version-request@1.0.0","_shasum":"24fbd889f385f31a346e15da111620cd629b8c0c","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"lirantal","email":"liran.tal@gmail.com"},"dist":{"shasum":"24fbd889f385f31a346e15da111620cd629b8c0c","tarball":"https://registry.npmjs.org/express-version-request/-/express-version-request-1.0.0.tgz","integrity":"sha512-CO+3vpfdZN5NnaIZpijWv8+D0hCMtLDYWb3ST00IK6MrInXrkCpCXY1RlbUN7bflI8GIlUuxPOVIE4Gn+gIJ0A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHq9Tk9rbo9ycThuOXx4kkpdjxVEvc8rm7QBkwDaxdtgIgDuZVtTEXptwDhD2uUjAoySfnasfkZISxQKeITwpFXRo="}]},"maintainers":[{"name":"lirantal","email":"liran.tal@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/express-version-request-1.0.0.tgz_1495017366122_0.950024152873084"}},"1.0.1":{"name":"express-version-request","version":"1.0.1","description":"versions an incoming request to Express based on header or URL","main":"index.js","scripts":{"lint":"eslint *.js","test":"yarn lint && ava","test:watch":"yarn lint && ava --watch","test:coverage":"yarn run lint && nyc --reporter=lcov ava --tap","coverage:view":"opn coverage/lcov-report/index.html","commit":"git-cz","docs":"yarn run docs:code && yarn run docs:api","docs:api":"doxdox *.js --layout bootstrap --output docs/index.html","docs:code":"docco *.js --output docs/code"},"keywords":["express","api","version","versioned","versioning","routing","router","api versioning","api version","header"],"author":{"name":"Liran Tal"},"license":"MIT","devDependencies":{"ava":"^0.17.0","commitizen":"^2.9.5","cz-conventional-changelog":"^1.2.0","docco":"^0.7.0","doxdox":"^2.0.1","eslint":"^3.19.0","eslint-config-standard":"^10.2.1","eslint-plugin-ava":"^4.2.0","eslint-plugin-import":"^2.2.0","eslint-plugin-node":"^4.2.2","eslint-plugin-security":"^1.3.0","nyc":"^10.1.2","opn-cli":"^3.1.0","standard":"^10.0.2"},"nyc":{"statements":90,"branches":90,"functions":90,"lines":90,"reporter":["lcov","text-summary"],"cache":true,"check-coverage":true},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"eslintConfig":{"env":{"node":true,"es6":true},"plugins":["node","security","ava"],"extends":["eslint-config-standard","plugin:ava/recommended","plugin:node/recommended"],"rules":{"node/no-unsupported-features":"off","node/no-unpublished-require":"off","security/detect-non-literal-fs-filename":"error","security/detect-unsafe-regex":"error","security/detect-buffer-noassert":"error","security/detect-child-process":"error","security/detect-disable-mustache-escape":"error","security/detect-eval-with-expression":"error","security/detect-no-csrf-before-method-override":"error","security/detect-non-literal-regexp":"error","security/detect-non-literal-require":"error","security/detect-object-injection":"error","security/detect-possible-timing-attacks":"error","security/detect-pseudoRandomBytes":"error"},"parserOptions":{"ecmaFeatures":{"impliedStrict":true}}},"gitHead":"849c2a246a696c57f54850dab96faf99005cba2a","_id":"express-version-request@1.0.1","_shasum":"20f2d41601b9260ace5ddb299ed82e65a5fe4878","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"lirantal","email":"liran.tal@gmail.com"},"dist":{"shasum":"20f2d41601b9260ace5ddb299ed82e65a5fe4878","tarball":"https://registry.npmjs.org/express-version-request/-/express-version-request-1.0.1.tgz","integrity":"sha512-OFnmRvyrjU2mId/GY2xT3iO9TqqI7H24+mj+uURDiv95AkvkE1VpQE9ykET92PYf2SJIX/T0LvxJOT6/8G4WKA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBJBT/nJcvIc4ri9EkBWDFj8Hh7y0KF4gM/ir/ylHnd6AiEAoxjtCPjscFI4G+eTnclwTUWV3x2J1/vU6SAILC4Pd9M="}]},"maintainers":[{"name":"lirantal","email":"liran.tal@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/express-version-request-1.0.1.tgz_1495017439159_0.5859800367616117"}},"1.2.0":{"name":"express-version-request","version":"1.2.0","description":"versions an incoming request to Express based on header or URL","main":"index.js","scripts":{"lint":"eslint *.js","test":"yarn lint && ava","test:watch":"yarn lint && ava --watch","test:coverage":"yarn run lint && nyc --reporter=lcov ava --tap","coverage:view":"opn coverage/lcov-report/index.html","commit":"git-cz","docs":"yarn run docs:code && yarn run docs:api","docs:api":"doxdox *.js --layout bootstrap --output docs/index.html","docs:code":"docco *.js --output docs/code"},"keywords":["express","api","version","versioned","versioning","routing","router","api versioning","api version","header"],"author":{"name":"Liran Tal"},"license":"MIT","devDependencies":{"ava":"^0.17.0","commitizen":"^2.9.5","cz-conventional-changelog":"^1.2.0","docco":"^0.7.0","doxdox":"^2.0.1","eslint":"^3.19.0","eslint-config-standard":"^10.2.1","eslint-plugin-ava":"^4.2.0","eslint-plugin-import":"^2.2.0","eslint-plugin-node":"^4.2.2","eslint-plugin-security":"^1.3.0","nyc":"^10.1.2","opn-cli":"^3.1.0","standard":"^10.0.2"},"nyc":{"statements":90,"branches":90,"functions":90,"lines":90,"reporter":["lcov","text-summary"],"cache":true,"check-coverage":true},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"eslintConfig":{"env":{"node":true,"es6":true},"plugins":["node","security","ava"],"extends":["eslint-config-standard","plugin:ava/recommended","plugin:node/recommended"],"rules":{"node/no-unsupported-features":"off","node/no-unpublished-require":"off","security/detect-non-literal-fs-filename":"error","security/detect-unsafe-regex":"error","security/detect-buffer-noassert":"error","security/detect-child-process":"error","security/detect-disable-mustache-escape":"error","security/detect-eval-with-expression":"error","security/detect-no-csrf-before-method-override":"error","security/detect-non-literal-regexp":"error","security/detect-non-literal-require":"error","security/detect-object-injection":"error","security/detect-possible-timing-attacks":"error","security/detect-pseudoRandomBytes":"error"},"parserOptions":{"ecmaFeatures":{"impliedStrict":true}}},"gitHead":"d077034452ae5fa90eb852a0e91e92fe33236534","_id":"express-version-request@1.2.0","_shasum":"43fb29302b95780498669143e1e65e936af9abdf","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"quiethunter","email":"matan.av@gmail.com"},"dist":{"shasum":"43fb29302b95780498669143e1e65e936af9abdf","tarball":"https://registry.npmjs.org/express-version-request/-/express-version-request-1.2.0.tgz","integrity":"sha512-934HiytL8Tjfa8dsyu4z7yODZQAeJU8oxWYTK9Dd6jg4PiUUT+fsDeP5LFczjgXn8ht80VW0riJDPIOOX1RJkQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICRXLNi5sKRiT0ZT3PwLN26baFDcx0jT/mKWAKxmmxFZAiAWxnG5Fss+0dtL+rpTNlFXzrEgmiHkl4RFjP4NHyaetQ=="}]},"maintainers":[{"name":"lirantal","email":"liran.tal@gmail.com"},{"name":"quiethunter","email":"matan.av@gmail.com"},{"name":"sebastian-curland","email":"curland@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-version-request-1.2.0.tgz_1495451822861_0.2919027446769178"}},"1.3.0":{"name":"express-version-request","version":"1.3.0","description":"versions an incoming request to Express based on header or URL","main":"index.js","scripts":{"lint":"eslint *.js","test":"yarn lint && ava","test:watch":"yarn lint && ava --watch","test:coverage":"yarn run lint && nyc --reporter=lcov ava --tap","coverage:view":"opn coverage/lcov-report/index.html","commit":"git-cz","docs":"yarn run docs:code && yarn run docs:api","docs:api":"doxdox *.js --layout bootstrap --output docs/index.html","docs:code":"docco *.js --output docs/code"},"keywords":["express","api","version","versioned","versioning","routing","router","api versioning","api version","header"],"author":{"name":"Liran Tal"},"license":"MIT","devDependencies":{"ava":"^0.17.0","commitizen":"^2.9.5","cz-conventional-changelog":"^1.2.0","docco":"^0.7.0","doxdox":"^2.0.1","eslint":"^3.19.0","eslint-config-standard":"^10.2.1","eslint-plugin-ava":"^4.2.0","eslint-plugin-import":"^2.2.0","eslint-plugin-node":"^4.2.2","eslint-plugin-security":"^1.3.0","nyc":"^10.1.2","opn-cli":"^3.1.0","standard":"^10.0.2"},"nyc":{"statements":90,"branches":90,"functions":90,"lines":90,"reporter":["lcov","text-summary"],"cache":true,"check-coverage":true},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"eslintConfig":{"env":{"node":true,"es6":true},"plugins":["node","security","ava"],"extends":["eslint-config-standard","plugin:ava/recommended","plugin:node/recommended"],"rules":{"node/no-unsupported-features":"off","node/no-unpublished-require":"off","security/detect-non-literal-fs-filename":"error","security/detect-unsafe-regex":"error","security/detect-buffer-noassert":"error","security/detect-child-process":"error","security/detect-disable-mustache-escape":"error","security/detect-eval-with-expression":"error","security/detect-no-csrf-before-method-override":"error","security/detect-non-literal-regexp":"error","security/detect-non-literal-require":"error","security/detect-object-injection":"error","security/detect-possible-timing-attacks":"error","security/detect-pseudoRandomBytes":"error"},"parserOptions":{"ecmaFeatures":{"impliedStrict":true}}},"gitHead":"2b782e801237c2b1b8d4d321ea7a8697496b150c","_id":"express-version-request@1.3.0","_shasum":"ced5e3185694a7e123e5a1c62fc1009b74e5e054","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"sebastian-curland","email":"curland@gmail.com"},"dist":{"shasum":"ced5e3185694a7e123e5a1c62fc1009b74e5e054","tarball":"https://registry.npmjs.org/express-version-request/-/express-version-request-1.3.0.tgz","integrity":"sha512-aBkZ3IAa1falog8mv+sLFniRnZ64wocRmueD/SEvatLnG5FRbY/QOQTnPfgi9DV6cy4PVmW9JpSI3zT0gDEVHA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDh1FeODHFsOOcYfudyqMXQZxrbiidYZBVnxzZhhQmw6AIgNglcwihpZw/hJuQCdfrz6y1F2zvuSUbmhDkucyZjnBA="}]},"maintainers":[{"name":"lirantal","email":"liran.tal@gmail.com"},{"name":"quiethunter","email":"matan.av@gmail.com"},{"name":"sebastian-curland","email":"curland@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-version-request-1.3.0.tgz_1495535378337_0.012465253239497542"}},"1.4.0":{"name":"express-version-request","version":"1.4.0","description":"versions an incoming request to Express based on header or URL","main":"index.js","scripts":{"lint":"eslint *.js","test":"yarn lint && ava","test:watch":"yarn lint && ava --watch","test:coverage":"yarn run lint && nyc --reporter=lcov ava --tap","coverage:view":"opn coverage/lcov-report/index.html","commit":"git-cz","docs":"yarn run docs:code && yarn run docs:api","docs:api":"doxdox *.js --layout bootstrap --output docs/index.html","docs:code":"docco *.js --output docs/code"},"keywords":["express","api","version","versioned","versioning","routing","router","api versioning","api version","header"],"author":{"name":"Liran Tal"},"license":"MIT","devDependencies":{"ava":"^0.17.0","commitizen":"^2.9.5","cz-conventional-changelog":"^1.2.0","docco":"^0.7.0","doxdox":"^2.0.1","eslint":"^3.19.0","eslint-config-standard":"^10.2.1","eslint-plugin-ava":"^4.2.0","eslint-plugin-import":"^2.2.0","eslint-plugin-node":"^4.2.2","eslint-plugin-security":"^1.3.0","nyc":"^10.1.2","opn-cli":"^3.1.0","standard":"^10.0.2"},"nyc":{"statements":90,"branches":90,"functions":90,"lines":90,"reporter":["lcov","text-summary"],"cache":true,"check-coverage":true},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"eslintConfig":{"env":{"node":true,"es6":true},"plugins":["node","security","ava"],"extends":["eslint-config-standard","plugin:ava/recommended","plugin:node/recommended"],"rules":{"node/no-unsupported-features":"off","node/no-unpublished-require":"off","security/detect-non-literal-fs-filename":"error","security/detect-unsafe-regex":"error","security/detect-buffer-noassert":"error","security/detect-child-process":"error","security/detect-disable-mustache-escape":"error","security/detect-eval-with-expression":"error","security/detect-no-csrf-before-method-override":"error","security/detect-non-literal-regexp":"error","security/detect-non-literal-require":"error","security/detect-object-injection":"error","security/detect-possible-timing-attacks":"error","security/detect-pseudoRandomBytes":"error"},"parserOptions":{"ecmaFeatures":{"impliedStrict":true}}},"gitHead":"a95d140d8a9eb45c6baabc9afbbc523c51d37c0a","_id":"express-version-request@1.4.0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"lirantal","email":"liran.tal@gmail.com"},"dist":{"integrity":"sha512-wpB/JW4pedCAOSxRftLamnk9G6RH8pLDHrK8LDG2pdv72HQmne7AqYp5HvTvK6Cgnb0GMJqIOnDgpaqPKH9f6w==","shasum":"28c431c53af80ff9e862d58eed7a1d6590750e5f","tarball":"https://registry.npmjs.org/express-version-request/-/express-version-request-1.4.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF+EMokJm4ngJRMuj8PDLJ0slcad11DjUHQjDVo6wclAAiBAPQMfnBINjOwRQlvykl+W9hsr5ohvq5wyLQBxFWkIhA=="}]},"maintainers":[{"name":"lirantal","email":"liran.tal@gmail.com"},{"name":"quiethunter","email":"matan.av@gmail.com"},{"name":"sebastian-curland","email":"curland@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-version-request-1.4.0.tgz_1504080324616_0.1481429715640843"}},"1.4.1":{"name":"express-version-request","version":"1.4.1","description":"versions an incoming request to Express based on header or URL","main":"index.js","scripts":{"lint":"eslint *.js","test":"yarn lint && ava","test:watch":"yarn lint && ava --watch","test:coverage":"yarn run lint && nyc --reporter=lcov ava --tap","coverage:view":"opn coverage/lcov-report/index.html","commit":"git-cz","docs":"yarn run docs:code && yarn run docs:api","docs:api":"doxdox *.js --layout bootstrap --output docs/index.html","docs:code":"docco *.js --output docs/code"},"keywords":["express","api","version","versioned","versioning","routing","router","api versioning","api version","header"],"author":{"name":"Liran Tal"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/lirantal/express-version-request.git"},"bugs":{"url":"https://github.com/lirantal/express-version-request/issues"},"homepage":"https://github.com/lirantal/express-version-request#readme","devDependencies":{"ava":"^0.17.0","commitizen":"^2.9.5","cz-conventional-changelog":"^1.2.0","docco":"^0.7.0","doxdox":"^2.0.1","eslint":"^3.19.0","eslint-config-standard":"^10.2.1","eslint-plugin-ava":"^4.2.0","eslint-plugin-import":"^2.2.0","eslint-plugin-node":"^4.2.2","eslint-plugin-security":"^1.3.0","nyc":"^10.1.2","opn-cli":"^3.1.0","standard":"^10.0.2"},"nyc":{"statements":90,"branches":90,"functions":90,"lines":90,"reporter":["lcov","text-summary"],"cache":true,"check-coverage":true},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"eslintConfig":{"env":{"node":true,"es6":true},"plugins":["node","security","ava"],"extends":["eslint-config-standard","plugin:ava/recommended","plugin:node/recommended"],"rules":{"node/no-unsupported-features":"off","node/no-unpublished-require":"off","security/detect-non-literal-fs-filename":"error","security/detect-unsafe-regex":"error","security/detect-buffer-noassert":"error","security/detect-child-process":"error","security/detect-disable-mustache-escape":"error","security/detect-eval-with-expression":"error","security/detect-no-csrf-before-method-override":"error","security/detect-non-literal-regexp":"error","security/detect-non-literal-require":"error","security/detect-object-injection":"error","security/detect-possible-timing-attacks":"error","security/detect-pseudoRandomBytes":"error"},"parserOptions":{"ecmaFeatures":{"impliedStrict":true}}},"gitHead":"3b78c734c8c9b726fde92f7eb0e128ce9215f54b","_id":"express-version-request@1.4.1","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"lirantal","email":"liran.tal@gmail.com"},"dist":{"integrity":"sha512-fGiTLVYG155gROJ5blGBV2M/pifFXyqAQwrR95HOVfNYwgOHzCHxfQJQpdK+F2nRVNjCnfcJRR9mnwmxCLrARA==","shasum":"85930217e78917d5815d339ba20dd8449c2b3755","tarball":"https://registry.npmjs.org/express-version-request/-/express-version-request-1.4.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHcIi0eodGDhX4vETqPmWnrx1oEATiIQnRz60/k+TR/JAiEA1vHgg0V1TZnNfDaqqrsD4UJsnt69raPcglSAxdbuakg="}]},"maintainers":[{"name":"lirantal","email":"liran.tal@gmail.com"},{"name":"quiethunter","email":"matan.av@gmail.com"},{"name":"sebastian-curland","email":"curland@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-version-request-1.4.1.tgz_1504080621538_0.14406584529206157"}},"1.5.0":{"name":"express-version-request","version":"1.5.0","description":"versions an incoming request to Express based on header or URL","main":"index.js","scripts":{"lint":"eslint *.js","test":"yarn lint && ava","test:watch":"yarn lint && ava --watch","test:coverage":"yarn run lint && nyc --reporter=lcov ava --tap","coverage:view":"opn coverage/lcov-report/index.html","commit":"git-cz","docs":"yarn run docs:code && yarn run docs:api","docs:api":"doxdox *.js --layout bootstrap --output docs/index.html","docs:code":"docco *.js --output docs/code"},"keywords":["express","api","version","versioned","versioning","routing","router","api versioning","api version","header"],"author":{"name":"Liran Tal"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/lirantal/express-version-request.git"},"bugs":{"url":"https://github.com/lirantal/express-version-request/issues"},"homepage":"https://github.com/lirantal/express-version-request#readme","devDependencies":{"ava":"^0.17.0","commitizen":"^2.9.5","cz-conventional-changelog":"^1.2.0","docco":"^0.7.0","doxdox":"^2.0.1","eslint":"^3.19.0","eslint-config-standard":"^10.2.1","eslint-plugin-ava":"^4.2.0","eslint-plugin-import":"^2.2.0","eslint-plugin-node":"^4.2.2","eslint-plugin-security":"^1.3.0","nyc":"^10.1.2","opn-cli":"^3.1.0","standard":"^10.0.2"},"nyc":{"statements":90,"branches":90,"functions":90,"lines":90,"reporter":["lcov","text-summary"],"cache":true,"check-coverage":true},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"eslintConfig":{"env":{"node":true,"es6":true},"plugins":["node","security","ava"],"extends":["eslint-config-standard","plugin:ava/recommended","plugin:node/recommended"],"rules":{"node/no-unsupported-features":"off","node/no-unpublished-require":"off","security/detect-non-literal-fs-filename":"error","security/detect-unsafe-regex":"error","security/detect-buffer-noassert":"error","security/detect-child-process":"error","security/detect-disable-mustache-escape":"error","security/detect-eval-with-expression":"error","security/detect-no-csrf-before-method-override":"error","security/detect-non-literal-regexp":"error","security/detect-non-literal-require":"error","security/detect-object-injection":"error","security/detect-possible-timing-attacks":"error","security/detect-pseudoRandomBytes":"error"},"parserOptions":{"ecmaFeatures":{"impliedStrict":true}}},"gitHead":"0705daf679505e5fd69654769e9dfb56a4bca8f6","_id":"express-version-request@1.5.0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"lirantal","email":"liran.tal@gmail.com"},"dist":{"integrity":"sha512-5LXq8hpvgXrlXPPqVHMoBpyBjoKWpiyw1Dn+vcOcm045bFx7kRloMYAoeUVdI25Vx/WpX+6dsuX4iXWnHfooVA==","shasum":"6d52098e52d83eb40015fca9cad3e0cb36e178a6","tarball":"https://registry.npmjs.org/express-version-request/-/express-version-request-1.5.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDSIuUpDRH5LGlxF9IjZTMlq4Pb+UkbwzO5YyEFIxkp1AiEAw4wa6FZpLSgGjQNmdbXlP0F4PaaLw8/UMhA4GVCtU3Y="}]},"maintainers":[{"name":"lirantal","email":"liran.tal@gmail.com"},{"name":"quiethunter","email":"matan.av@gmail.com"},{"name":"sebastian-curland","email":"curland@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-version-request-1.5.0.tgz_1504763816314_0.9740165581461042"}},"1.6.0":{"name":"express-version-request","version":"1.6.0","description":"versions an incoming request to Express based on header or URL","main":"index.js","scripts":{"lint":"eslint *.js","test":"yarn lint && ava","test:watch":"yarn lint && ava --watch","test:coverage":"yarn run lint && nyc --reporter=lcov ava --tap","coverage:view":"opn coverage/lcov-report/index.html","commit":"git-cz","docs":"yarn run docs:code && yarn run docs:api","docs:api":"doxdox *.js --layout bootstrap --output docs/index.html","docs:code":"docco *.js --output docs/code"},"keywords":["express","api","version","versioned","versioning","routing","router","api versioning","api version","header"],"author":{"name":"Liran Tal"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/lirantal/express-version-request.git"},"bugs":{"url":"https://github.com/lirantal/express-version-request/issues"},"homepage":"https://github.com/lirantal/express-version-request#readme","devDependencies":{"ava":"^0.17.0","commitizen":"^2.9.5","cz-conventional-changelog":"^1.2.0","docco":"^0.7.0","doxdox":"^2.0.1","eslint":"^3.19.0","eslint-config-standard":"^10.2.1","eslint-plugin-ava":"^4.2.0","eslint-plugin-import":"^2.2.0","eslint-plugin-node":"^4.2.2","eslint-plugin-security":"^1.3.0","nyc":"^10.1.2","opn-cli":"^3.1.0","standard":"^10.0.2","sinon":"^1.17.5"},"nyc":{"statements":90,"branches":90,"functions":90,"lines":90,"reporter":["lcov","text-summary"],"cache":true,"check-coverage":true},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"eslintConfig":{"env":{"node":true,"es6":true},"plugins":["node","security","ava"],"extends":["eslint-config-standard","plugin:ava/recommended","plugin:node/recommended"],"rules":{"node/no-unsupported-features":"off","node/no-unpublished-require":"off","security/detect-non-literal-fs-filename":"error","security/detect-unsafe-regex":"error","security/detect-buffer-noassert":"error","security/detect-child-process":"error","security/detect-disable-mustache-escape":"error","security/detect-eval-with-expression":"error","security/detect-no-csrf-before-method-override":"error","security/detect-non-literal-regexp":"error","security/detect-non-literal-require":"error","security/detect-object-injection":"error","security/detect-possible-timing-attacks":"error","security/detect-pseudoRandomBytes":"error"},"parserOptions":{"ecmaFeatures":{"impliedStrict":true}}},"gitHead":"54ac6e4bef2c8679bcd4db678f6f1b080f05ceef","_id":"express-version-request@1.6.0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"lirantal","email":"liran.tal@gmail.com"},"dist":{"integrity":"sha512-mErMuC/Rxl8DKK0lt6CijlV/7ciiWniJb1fQUJQJNdfVpujp+NEVXJibAS+2WghiVvOIqGA+r7pld+5PyTbOPA==","shasum":"b980146bd8943a2ff0f75c8956414d0f75014e06","tarball":"https://registry.npmjs.org/express-version-request/-/express-version-request-1.6.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDRhmh8P2m2WRgWvvH1momBbzgUOdy0K4BXy8smyWtNaAiBrD4/2CAnjLGG3A3jFaGrh+DVXdHN62Aoym4H0zecZBg=="}]},"maintainers":[{"name":"lirantal","email":"liran.tal@gmail.com"},{"name":"quiethunter","email":"matan.av@gmail.com"},{"name":"sebastian-curland","email":"curland@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-version-request-1.6.0.tgz_1505379656828_0.7232999377883971"}},"1.7.0":{"name":"express-version-request","version":"1.7.0","description":"versions an incoming request to Express based on header or URL","main":"index.js","scripts":{"lint":"eslint *.js","test":"yarn lint && ava","test:watch":"yarn lint && ava --watch","test:coverage":"yarn run lint && nyc --reporter=lcov ava --tap","coverage:view":"opn coverage/lcov-report/index.html","commit":"git-cz","docs":"yarn run docs:code && yarn run docs:api","docs:api":"doxdox *.js --layout bootstrap --output docs/index.html","docs:code":"docco *.js --output docs/code"},"keywords":["express","api","version","versioned","versioning","routing","router","api versioning","api version","header"],"author":{"name":"Liran Tal"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/lirantal/express-version-request.git"},"bugs":{"url":"https://github.com/lirantal/express-version-request/issues"},"homepage":"https://github.com/lirantal/express-version-request#readme","devDependencies":{"ava":"^0.17.0","commitizen":"^2.9.5","cz-conventional-changelog":"^1.2.0","docco":"^0.7.0","doxdox":"^2.0.1","eslint":"^3.19.0","eslint-config-standard":"^10.2.1","eslint-plugin-ava":"^4.2.0","eslint-plugin-import":"^2.2.0","eslint-plugin-node":"^4.2.2","eslint-plugin-security":"^1.3.0","nyc":"^10.1.2","opn-cli":"^3.1.0","standard":"^10.0.2","sinon":"^1.17.5"},"nyc":{"statements":90,"branches":90,"functions":90,"lines":90,"reporter":["lcov","text-summary"],"cache":true,"check-coverage":true},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"eslintConfig":{"env":{"node":true,"es6":true},"plugins":["node","security","ava"],"extends":["eslint-config-standard","plugin:ava/recommended","plugin:node/recommended"],"rules":{"node/no-unsupported-features":"off","node/no-unpublished-require":"off","security/detect-non-literal-fs-filename":"error","security/detect-unsafe-regex":"error","security/detect-buffer-noassert":"error","security/detect-child-process":"error","security/detect-disable-mustache-escape":"error","security/detect-eval-with-expression":"error","security/detect-no-csrf-before-method-override":"error","security/detect-non-literal-regexp":"error","security/detect-non-literal-require":"error","security/detect-object-injection":"error","security/detect-possible-timing-attacks":"error","security/detect-pseudoRandomBytes":"error"},"parserOptions":{"ecmaFeatures":{"impliedStrict":true}}},"gitHead":"f7b5ad3c2e326c52fd008ee17e27be2563695bfa","_id":"express-version-request@1.7.0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"lirantal","email":"liran.tal@gmail.com"},"dist":{"integrity":"sha512-arhavpFgjpfIOvpUt/U5h7azHq3y8atJYQOY2XaOUx1+pvZ+kU6qumkICPBdtzlt9lxnHme9tN55kgIugUHgdw==","shasum":"8ab62bbb8ca9d5ab5f503ac51c7a4971fd994b14","tarball":"https://registry.npmjs.org/express-version-request/-/express-version-request-1.7.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCpCngQwuTDxlJdnvIICifr2UQpmkB5SR1yw+8JBVSJIAIhAKF2X2uZMVCLx1qXibALkqSvq9PMUn/VpHoYVid9S4nv"}]},"maintainers":[{"name":"lirantal","email":"liran.tal@gmail.com"},{"name":"quiethunter","email":"matan.av@gmail.com"},{"name":"sebastian-curland","email":"curland@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-version-request-1.7.0.tgz_1506440547971_0.17467074771411717"}}},"readme":"# express-version-request\n\n[![view on npm](http://img.shields.io/npm/v/express-version-request.svg)](https://www.npmjs.org/package/express-version-request)\n[![view on npm](http://img.shields.io/npm/l/express-version-request.svg)](https://www.npmjs.org/package/express-version-request)\n[![npm module downloads](http://img.shields.io/npm/dt/express-version-request.svg)](https://www.npmjs.org/package/express-version-request)\n[![Dependency Status](https://david-dm.org/lirantal/express-version-request.svg)](https://david-dm.org/lirantal/express-version-request)\n[![Build Status](https://travis-ci.org/lirantal/express-version-request.svg?branch=master)](https://travis-ci.org/lirantal/express-version-request)\n[![codecov](https://codecov.io/gh/lirantal/express-version-request/branch/master/graph/badge.svg)](https://codecov.io/gh/lirantal/express-version-request)\n\n## What is this?\n\nThis npm package provides an ExpressJS middleware that sets the request object with a `version` property by parsing a request HTTP header.  \n\n## Usage\n\n### Set request version statically\n\nIf you wish to employ your own logic in some middleware/configuration and set the request version programmaticaly and not by parsing a specific HTTP header:\n\n```js\nconst versionRequest = require('express-version-request')\n\napp.use(versionRequest.setVersion('1.2.3'))\n```\n\nThen in later middlewares you will be able to access `req.version` property and it's value set to 1.2.3.\n\n### Set request version by HTTP header\n\nBy default, the library will parse the version out of the `X-Api-Version` HTTP header:\n\n```js\nconst versionRequest = require('express-version-request')\n\napp.use(versionRequest.setVersionByHeader())\n```\n\n### Set request version by custom HTTP header\n\nIf you wish to advise the library which HTTP header to parse to extract the version:\n\n```js\nconst versionRequest = require('express-version-request')\n\napp.use(versionRequest.setVersionByHeader('My-HTTP-Header-Name'))\n```\n\n### Set request version by HTTP query parameter\n\nBy default, the library will parse the version out of the `api-version` query parameter:\n\n```js\nconst versionRequest = require('express-version-request')\n\napp.use(versionRequest.setVersionByQueryParam())\n```\n\n### Set request version by custom HTTP query parameter\n\nIf you wish to advise the library which query parameter to parse to extract the version:\n\n```js\nconst versionRequest = require('express-version-request')\n\napp.use(versionRequest.setVersionByQueryParam('myQueryParam'))\n```\n#### setVersionByQueryParam options \nThe second parameter of `setVersionByQueryParam` is an options object.\n\n### Set request version by 'Accept' header\n\nBy default, the library will parse the version from the Accept header, expecting the following format:\n**Accept: application/vnd.company+json;version=1.0.0**\nFor more details about the Accept header format, please refer to the [RFC](https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).\n\n\n```js\nconst versionRequest = require('express-version-request')\n\napp.use(versionRequest.setVersionByAcceptHeader())\n```\n#### Parsing using an alternative format\nAs a fallback, the lib supports an alternative Accept header format:\n\n**Accept: application/vnd.comapny-v1.0.0+json**\n\nor\n\n**Accept: application/vnd.comapny.v1.0.0+json**\n\nThe lib will try to parse the header using the default format, and if it doesn't succeed, tries this alternative format.\nThe usage is the same as in the case of the regular format:\n\n```js\nconst versionRequest = require('express-version-request')\n\napp.use(versionRequest.setVersionByAcceptHeader())\n```\n#### Parsing using a custom function\nIf you wish to use your own parsing, it is possible to pass a function as the first parameter.\nThe lib will then call it with the actual value of the Accept header as the first parameter, and the returned value will be set as version.\nThe provided function should return a **string**.\n\n```js\nconst versionRequest = require('express-version-request')\nfunction customParsingFunction(header) {\n\t//function body, that parses the header parameter and returns a string\n}\n\napp.use(versionRequest.setVersionByAcceptHeader(customParsingFunction))\n```\n#### Version formatting\nBefore setting the version, it is always formatted, so the resulting version is a semver comaptible string, except the following cases:\n\n* if the version was set as an Object, it will be returned in stringified format (using JSON.stringify)\n* if the version is longer than the semver format, we truncate it by cutting off the tail, and leaving the first three segments (e.g.: 1.2.3.4.5 will become 1.2.3)\n* if we encunter something, that can't be parsed or formatted as a version, undefined is returned\n\nThis formatting function is called automatically for each version setting method, but it can also be used independently:\n```js\nconst versionRequest = require('express-version-request')\nconst formattedVersion = versionRequest.formatVersion(versionThatNeedsFormatting)\n```\n##### Options\n\n`removeQueryParam`\n\nDelete version HTTP query parameter after setting the request object with a `version` property.\nBy default it is set to false.\n\n```js\nconst versionRequest = require('express-version-request')\nconst options = {removeQueryParam: true}\n\napp.use(versionRequest.setVersionByQueryParam('myQueryParam', options))\n```\n\nIf you define a middleware after versionRequest then you can verify that the version is indeed set:\n\n```js\napp.use((req, res, next) => {\n    console.log(req.version)\n    next()\n  })\n```\n\n## Installation\n\n```bash\nyarn add express-version-request\n```\n\n## Tests\n\n```bash\nyarn test\n```\n\nProject linting:\n\n```bash\nyarn lint\n```\n\n## Coverage\n\n```bash\nyarn test:coverage\n```\n\n## Commit\n\nThe project uses the commitizen tool for standardizing changelog style commit\nmessages so you should follow it as so:\n\n```bash\ngit add .           # add files to staging\nyarn commit      # use the wizard for the commit message\n```\n\n## Author\n\nLiran Tal <liran.tal@gmail.com>\n","maintainers":[{"name":"lirantal","email":"liran.tal@gmail.com"},{"name":"quiethunter","email":"matan.av@gmail.com"},{"name":"sebastian-curland","email":"curland@gmail.com"}],"time":{"modified":"2022-06-17T22:44:43.344Z","created":"2017-05-17T10:36:08.318Z","1.0.0":"2017-05-17T10:36:08.318Z","1.0.1":"2017-05-17T10:37:21.042Z","1.2.0":"2017-05-22T11:17:03.908Z","1.3.0":"2017-05-23T10:29:39.464Z","1.4.0":"2017-08-30T08:05:25.680Z","1.4.1":"2017-08-30T08:10:22.876Z","1.5.0":"2017-09-07T05:56:57.494Z","1.6.0":"2017-09-14T09:00:58.042Z","1.7.0":"2017-09-26T15:42:29.168Z"},"keywords":["express","api","version","versioned","versioning","routing","router","api versioning","api version","header"],"author":{"name":"Liran Tal"},"license":"MIT","readmeFilename":"README.md","homepage":"https://github.com/lirantal/express-version-request#readme","repository":{"type":"git","url":"git+https://github.com/lirantal/express-version-request.git"},"bugs":{"url":"https://github.com/lirantal/express-version-request/issues"}}