{"_id":"amp-toolbox-runtime-version","_rev":"2882192","name":"amp-toolbox-runtime-version","description":"AMP Runtime versions","dist-tags":{"canary":"1.2.0-alpha.1","latest":"1.2.0-alpha.2"},"maintainers":[{"name":"amp-toolbox","email":""},{"name":"npm:amp-toolbox","email":""}],"time":{"modified":"2022-10-06T07:28:28.000Z","created":"2018-01-16T16:30:13.808Z","1.2.0-alpha.2":"2019-06-04T14:14:04.874Z","1.2.0-alpha.1":"2019-05-20T20:30:06.200Z","1.2.0-alpha.0":"2019-05-07T09:04:38.267Z","0.2.7":"2019-04-24T06:41:11.578Z","0.2.6":"2019-03-13T12:23:00.111Z","0.2.5":"2019-02-22T09:41:39.535Z","0.2.4":"2019-02-08T18:30:56.517Z","0.2.3":"2018-11-26T14:54:55.297Z","0.2.2":"2018-11-15T13:22:07.339Z","0.2.1":"2018-09-13T10:08:07.417Z","0.1.0":"2018-02-01T19:49:20.816Z","0.0.2":"2018-01-16T16:30:13.808Z"},"users":{},"author":{"name":"AMPHTML Team"},"repository":{"type":"git","url":"git+https://github.com/ampproject/amp-toolbox.git"},"versions":{"1.2.0-alpha.2":{"name":"amp-toolbox-runtime-version","version":"1.2.0-alpha.2","description":"AMP Runtime versions","main":"index.js","keywords":["amp"],"repository":{"type":"git","url":"git+https://github.com/ampproject/amp-toolbox.git"},"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","dependencies":{"amp-toolbox-core":"^1.2.0-alpha.2"},"bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"homepage":"https://github.com/ampproject/amp-toolbox/tree/master/packages/runtime-version","gitHead":"fd8f6a83d9c444c9fdf6c6eba01dc5b360bbae59","_id":"amp-toolbox-runtime-version@1.2.0-alpha.2","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"shasum":"cced75263f32f19cea0b5360bfd76ef8a9131979","size":2309,"noattachment":false,"key":"/amp-toolbox-runtime-version/-/amp-toolbox-runtime-version-1.2.0-alpha.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/amp-toolbox-runtime-version/download/amp-toolbox-runtime-version-1.2.0-alpha.2.tgz"},"maintainers":[{"name":"amp-toolbox","email":""},{"name":"npm:amp-toolbox","email":""}],"_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amp-toolbox-runtime-version_1.2.0-alpha.2_1559657644701_0.2815032456211759"},"_hasShrinkwrap":false,"publish_time":1559657644874,"_cnpm_publish_time":1559657644874,"_cnpmcore_publish_time":"2021-12-17T01:20:35.239Z"},"1.2.0-alpha.1":{"name":"amp-toolbox-runtime-version","version":"1.2.0-alpha.1","description":"AMP Runtime versions","main":"index.js","keywords":["amp"],"repository":{"type":"git","url":"git+https://github.com/ampproject/amp-toolbox.git"},"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","dependencies":{"amp-toolbox-core":"^1.2.0-alpha.1"},"bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"homepage":"https://github.com/ampproject/amp-toolbox/tree/master/packages/runtime-version","gitHead":"0b9aae09249e5572bdeb7c07bfb2f2beeb714b67","readmeFilename":"README.md","_id":"amp-toolbox-runtime-version@1.2.0-alpha.1","_nodeVersion":"10.15.3","_npmVersion":"lerna/3.14.1/node@v10.15.3+x64 (darwin)","dist":{"shasum":"8908762cfe72a1c233aa7c2eeab00f4656b32a8c","size":6006,"noattachment":false,"key":"/amp-toolbox-runtime-version/-/amp-toolbox-runtime-version-1.2.0-alpha.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/amp-toolbox-runtime-version/download/amp-toolbox-runtime-version-1.2.0-alpha.1.tgz"},"maintainers":[{"name":"amp-toolbox","email":""},{"name":"npm:amp-toolbox","email":""}],"_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amp-toolbox-runtime-version_1.2.0-alpha.1_1558384205931_0.3138720646247153"},"_hasShrinkwrap":false,"publish_time":1558384206200,"_cnpm_publish_time":1558384206200,"_cnpmcore_publish_time":"2021-12-17T01:20:35.854Z"},"1.2.0-alpha.0":{"name":"amp-toolbox-runtime-version","version":"1.2.0-alpha.0","description":"AMP Runtime versions","main":"index.js","keywords":["amp"],"repository":{"type":"git","url":"git+https://github.com/ampproject/amp-toolbox.git"},"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","dependencies":{"amp-toolbox-core":"^1.2.0-alpha.0"},"bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"homepage":"https://github.com/ampproject/amp-toolbox/tree/master/packages/runtime-version","gitHead":"9d6243974ac2023a466656aa9790e47e1219a624","readmeFilename":"README.md","_id":"amp-toolbox-runtime-version@1.2.0-alpha.0","_nodeVersion":"10.15.3","_npmVersion":"lerna/3.13.1/node@v10.15.3+x64 (darwin)","dist":{"shasum":"8e154fe10d6835129e1e62f42da12817adb62f6c","size":6006,"noattachment":false,"key":"/amp-toolbox-runtime-version/-/amp-toolbox-runtime-version-1.2.0-alpha.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/amp-toolbox-runtime-version/download/amp-toolbox-runtime-version-1.2.0-alpha.0.tgz"},"maintainers":[{"name":"amp-toolbox","email":""},{"name":"npm:amp-toolbox","email":""}],"_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amp-toolbox-runtime-version_1.2.0-alpha.0_1557219878087_0.622593647042637"},"_hasShrinkwrap":false,"publish_time":1557219878267,"_cnpm_publish_time":1557219878267,"_cnpmcore_publish_time":"2021-12-17T01:20:36.061Z"},"0.2.7":{"name":"amp-toolbox-runtime-version","version":"0.2.7","description":"AMP Runtime versions","main":"index.js","keywords":["amp"],"repository":{"type":"git","url":"git+https://github.com/ampproject/amp-toolbox.git"},"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","dependencies":{"amp-toolbox-core":"^0.1.6"},"bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"homepage":"https://github.com/ampproject/amp-toolbox/tree/master/packages/runtime-version","gitHead":"058a60702136ac24dfd0a4f421877ed23aeee19f","_id":"amp-toolbox-runtime-version@0.2.7","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"dist":{"shasum":"09cbe73a8929cfbae702348bbf7537b180783e9e","size":2305,"noattachment":false,"key":"/amp-toolbox-runtime-version/-/amp-toolbox-runtime-version-0.2.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/amp-toolbox-runtime-version/download/amp-toolbox-runtime-version-0.2.7.tgz"},"maintainers":[{"name":"amp-toolbox","email":""},{"name":"npm:amp-toolbox","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amp-toolbox-runtime-version_0.2.7_1556088071478_0.8520314870960848"},"_hasShrinkwrap":false,"publish_time":1556088071578,"deprecated":"\"amp-toolbox-runtime-version has been moved to @ampproject/toolbox-runtime-version\"","_cnpm_publish_time":1556088071578,"_cnpmcore_publish_time":"2021-12-17T01:20:36.289Z"},"0.2.6":{"name":"amp-toolbox-runtime-version","version":"0.2.6","description":"AMP Runtime versions","main":"index.js","keywords":["amp"],"repository":{"type":"git","url":"git+https://github.com/ampproject/amp-toolbox.git"},"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","dependencies":{"amp-toolbox-core":"^0.1.5","axios":"^0.18.0"},"bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"homepage":"https://github.com/ampproject/amp-toolbox/tree/master/packages/runtime-version","gitHead":"0f15452c5a91d97bb54194b70bff3dcaf9f56d0e","_id":"amp-toolbox-runtime-version@0.2.6","_nodeVersion":"10.11.0","_npmVersion":"lerna/3.13.1/node@v10.11.0+x64 (darwin)","dist":{"shasum":"8d403ef396c25dd5d21b1b0ea7fdcaf66ba616c6","size":6245,"noattachment":false,"key":"/amp-toolbox-runtime-version/-/amp-toolbox-runtime-version-0.2.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/amp-toolbox-runtime-version/download/amp-toolbox-runtime-version-0.2.6.tgz"},"maintainers":[{"name":"amp-toolbox","email":""},{"name":"npm:amp-toolbox","email":""}],"_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amp-toolbox-runtime-version_0.2.6_1552479779995_0.4951995695264364"},"_hasShrinkwrap":false,"publish_time":1552479780111,"deprecated":"\"amp-toolbox-runtime-version has been moved to @ampproject/toolbox-runtime-version\"","_cnpm_publish_time":1552479780111,"_cnpmcore_publish_time":"2021-12-17T01:20:36.486Z"},"0.2.5":{"name":"amp-toolbox-runtime-version","version":"0.2.5","description":"AMP Runtime versions","main":"index.js","keywords":["amp"],"repository":{"type":"git","url":"git+https://github.com/ampproject/amp-toolbox.git"},"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","dependencies":{"amp-toolbox-core":"^0.1.4","axios":"^0.18.0"},"bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"homepage":"https://github.com/ampproject/amp-toolbox/tree/master/packages/runtime-version","gitHead":"058a60702136ac24dfd0a4f421877ed23aeee19f","_id":"amp-toolbox-runtime-version@0.2.5","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"dist":{"shasum":"fdc0f4576d93ef2280f11a8488890a8ebe9a2ac1","size":2547,"noattachment":false,"key":"/amp-toolbox-runtime-version/-/amp-toolbox-runtime-version-0.2.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/amp-toolbox-runtime-version/download/amp-toolbox-runtime-version-0.2.5.tgz"},"maintainers":[{"name":"amp-toolbox","email":""},{"name":"npm:amp-toolbox","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amp-toolbox-runtime-version_0.2.5_1550828499374_0.1353662489104619"},"_hasShrinkwrap":false,"publish_time":1550828499535,"deprecated":"\"amp-toolbox-runtime-version has been moved to @ampproject/toolbox-runtime-version\"","_cnpm_publish_time":1550828499535,"_cnpmcore_publish_time":"2021-12-17T01:20:36.715Z"},"0.2.4":{"name":"amp-toolbox-runtime-version","version":"0.2.4","description":"AMP Runtime versions","main":"index.js","keywords":["amp"],"repository":{"type":"git","url":"git+https://github.com/ampproject/amp-toolbox.git"},"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","dependencies":{"amp-toolbox-core":"^0.1.3","axios":"^0.18.0"},"gitHead":"8375d148097a6323663a8d35a9499b82fcedd28d","_resolved":"","_integrity":"","_from":"file:amp-toolbox-runtime-version-0.2.4.tgz","bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"homepage":"https://github.com/ampproject/amp-toolbox#readme","_id":"amp-toolbox-runtime-version@0.2.4","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"dist":{"shasum":"03fb1fc42c3fc651fc53b874109892c6d4955560","size":6209,"noattachment":false,"key":"/amp-toolbox-runtime-version/-/amp-toolbox-runtime-version-0.2.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/amp-toolbox-runtime-version/download/amp-toolbox-runtime-version-0.2.4.tgz"},"maintainers":[{"name":"amp-toolbox","email":""},{"name":"npm:amp-toolbox","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amp-toolbox-runtime-version_0.2.4_1549650656388_0.008468276895460924"},"_hasShrinkwrap":false,"publish_time":1549650656517,"deprecated":"\"amp-toolbox-runtime-version has been moved to @ampproject/toolbox-runtime-version\"","_cnpm_publish_time":1549650656517,"_cnpmcore_publish_time":"2021-12-17T01:20:36.898Z"},"0.2.3":{"name":"amp-toolbox-runtime-version","version":"0.2.3","description":"AMP Runtime versions","main":"index.js","keywords":["amp"],"repository":{"type":"git","url":"git+https://github.com/ampproject/amp-toolbox.git"},"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","dependencies":{"amp-toolbox-core":"^0.1.2","axios":"^0.18.0"},"gitHead":"4c0345ec4414a8c33dd896bbe9f8637e7c8561b8","_resolved":"","_integrity":"","_from":"file:amp-toolbox-runtime-version-0.2.3.tgz","bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"homepage":"https://github.com/ampproject/amp-toolbox#readme","_id":"amp-toolbox-runtime-version@0.2.3","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"dist":{"shasum":"6b4db096673653351ad8b4ec572713c80f28f6f6","size":6208,"noattachment":false,"key":"/amp-toolbox-runtime-version/-/amp-toolbox-runtime-version-0.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/amp-toolbox-runtime-version/download/amp-toolbox-runtime-version-0.2.3.tgz"},"maintainers":[{"name":"amp-toolbox","email":""},{"name":"npm:amp-toolbox","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amp-toolbox-runtime-version_0.2.3_1543244095181_0.4237528665483612"},"_hasShrinkwrap":false,"publish_time":1543244095297,"deprecated":"\"amp-toolbox-runtime-version has been moved to @ampproject/toolbox-runtime-version\"","_cnpm_publish_time":1543244095297,"_cnpmcore_publish_time":"2021-12-17T01:20:37.067Z"},"0.2.2":{"name":"amp-toolbox-runtime-version","version":"0.2.2","description":"AMP Runtime versions","main":"index.js","keywords":["amp"],"repository":{"type":"git","url":"git+https://github.com/ampproject/amp-toolbox.git"},"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","dependencies":{"amp-toolbox-core":"^0.1.1","axios":"^0.18.0"},"gitHead":"058a60702136ac24dfd0a4f421877ed23aeee19f","bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"homepage":"https://github.com/ampproject/amp-toolbox#readme","_id":"amp-toolbox-runtime-version@0.2.2","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"dist":{"shasum":"97de67846a482aee19a31f6cebf90e00264bf79e","size":8536,"noattachment":false,"key":"/amp-toolbox-runtime-version/-/amp-toolbox-runtime-version-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/amp-toolbox-runtime-version/download/amp-toolbox-runtime-version-0.2.2.tgz"},"maintainers":[{"name":"amp-toolbox","email":""},{"name":"npm:amp-toolbox","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amp-toolbox-runtime-version_0.2.2_1542288127028_0.7666967257998418"},"_hasShrinkwrap":false,"publish_time":1542288127339,"deprecated":"\"amp-toolbox-runtime-version has been moved to @ampproject/toolbox-runtime-version\"","_cnpm_publish_time":1542288127339,"_cnpmcore_publish_time":"2021-12-17T01:20:37.590Z"},"0.2.1":{"name":"amp-toolbox-runtime-version","version":"0.2.1","description":"AMP Runtime versions","main":"index.js","scripts":{"test":"jasmine && npm run lint","lint":"eslint . --config ../.eslintrc.json","lint-fix":"eslint . --config ../.eslintrc.json --fix"},"keywords":["amp"],"repository":{"type":"git","url":"git+https://github.com/ampproject/amp-toolbox.git"},"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","dependencies":{"amp-toolbox-core":"^0.1.0","axios":"^0.18.0"},"devDependencies":{"eslint":"^5.4.0","eslint-config-google":"^0.9.1","jasmine":"^3.2.0","jasmine-spec-reporter":"^4.2.1"},"bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"homepage":"https://github.com/ampproject/amp-toolbox#readme","_id":"amp-toolbox-runtime-version@0.2.1","_npmVersion":"6.1.0","_nodeVersion":"10.7.0","_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"dist":{"shasum":"b70466a1b82862d7c87eeab49c4725d354f89104","size":2336,"noattachment":false,"key":"/amp-toolbox-runtime-version/-/amp-toolbox-runtime-version-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/amp-toolbox-runtime-version/download/amp-toolbox-runtime-version-0.2.1.tgz"},"maintainers":[{"name":"amp-toolbox","email":""},{"name":"npm:amp-toolbox","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amp-toolbox-runtime-version_0.2.1_1536833287337_0.23940851292210485"},"_hasShrinkwrap":false,"publish_time":1536833287417,"deprecated":"\"amp-toolbox-runtime-version has been moved to @ampproject/toolbox-runtime-version\"","_cnpm_publish_time":1536833287417,"_cnpmcore_publish_time":"2021-12-17T01:20:37.806Z"},"0.1.0":{"name":"amp-toolbox-runtime-version","version":"0.1.0","description":"AMP Runtime versions","main":"index.js","scripts":{"test":"jasmine && eslint .","lint":"eslint .","lint-fix":"eslint . --fix"},"keywords":["amp"],"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","dependencies":{"amp-toolbox-core":"<1.0.0","axios":"^0.17.1"},"devDependencies":{"eslint":"^3.0.1","eslint-config-google":"^0.6.0","jasmine":"^2.8.0","jasmine-spec-reporter":"^4.2.1"},"_id":"amp-toolbox-runtime-version@0.1.0","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"dist":{"shasum":"ea6daed78c01a26fd9b7521a769c960dc3b4a5ee","size":2586,"noattachment":false,"key":"/amp-toolbox-runtime-version/-/amp-toolbox-runtime-version-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/amp-toolbox-runtime-version/download/amp-toolbox-runtime-version-0.1.0.tgz"},"maintainers":[{"name":"amp-toolbox","email":""},{"name":"npm:amp-toolbox","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amp-toolbox-runtime-version-0.1.0.tgz_1517514560737_0.7495189772453159"},"directories":{},"publish_time":1517514560816,"_hasShrinkwrap":false,"deprecated":"\"amp-toolbox-runtime-version has been moved to @ampproject/toolbox-runtime-version\"","_cnpm_publish_time":1517514560816,"_cnpmcore_publish_time":"2021-12-17T01:20:37.993Z"},"0.0.2":{"name":"amp-toolbox-runtime-version","version":"0.0.2","description":"AMP Runtime versions","main":"index.js","scripts":{"test":"jasmine && eslint .","lint":"eslint .","lint-fix":"eslint . --fix"},"keywords":["amp"],"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","dependencies":{"axios":"^0.17.1"},"devDependencies":{"eslint":"^3.0.1","eslint-config-google":"^0.6.0","jasmine":"^2.8.0","jasmine-spec-reporter":"^4.2.1"},"_id":"amp-toolbox-runtime-version@0.0.2","_npmVersion":"5.6.0","_nodeVersion":"9.3.0","_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"dist":{"shasum":"3cca5f2584c853a45ee7f7f4f1780a37e2e69869","size":3391,"noattachment":false,"key":"/amp-toolbox-runtime-version/-/amp-toolbox-runtime-version-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/amp-toolbox-runtime-version/download/amp-toolbox-runtime-version-0.0.2.tgz"},"maintainers":[{"name":"amp-toolbox","email":""},{"name":"npm:amp-toolbox","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amp-toolbox-runtime-version-0.0.2.tgz_1516120212039_0.18839803477749228"},"directories":{},"publish_time":1516120213808,"_hasShrinkwrap":false,"deprecated":"\"amp-toolbox-runtime-version has been moved to @ampproject/toolbox-runtime-version\"","_cnpm_publish_time":1516120213808,"_cnpmcore_publish_time":"2021-12-17T01:20:38.205Z"}},"readme":"# AMP Runtime Version\n\n[![npm version](https://badge.fury.io/js/amp-toolbox-runtime-version.svg)](https://badge.fury.io/js/amp-toolbox-runtime-version)\n\nUse it to query `cdn.ampproject.org` for the current release or canary version of the AMP Runtime. Uses a stale-while-revalidate caching strategy to avoid network requests in the critical path.\n\nYou can use the API to re-write AMP runtime URLs to their versioned counter parts to improve browser caching, e.g. to replace:\n\n```\nhttps://cdn.ampproject.org/v0.css\n```\n\nwith:\n\n```\nhttps://cdn.ampproject.org/rtv/001515617716922/v0.css\n```\n\n\n## Installation\n\nInstall via:\n\n```sh\nnpm install amp-toolbox-runtime-version\n```\n\n## Usage\n\nBasic usage:\n\n```js\nconst runtimeVersion = require('amp-toolbox-runtime-version');\n\n// Release version\nruntimeVersion.currentVersion().then(version => {\n  console.log(version);\n});\n\n// Canary version\nruntimeVersion.currentVersion({canary: true}).then(version => {\n  console.log(version);\n});\n\n// Rewriting cache URLs\nconst ampRuntimeUrl = 'https://cdn.ampproject.org/v0.js';\nconst version = await runtimeVersion.currentVersion();\nconst versionedAmpRuntimeUrl = ampRuntimeUrl.replace(\n  'https://cdn.ampproject.org/',\n  'https://cdn.ampproject.org/rtv/' + version + '/'\n);\nconsole.log(versionedAmpRuntimeUrl);\n```\n\n","_attachments":{},"homepage":"https://github.com/ampproject/amp-toolbox/tree/master/packages/runtime-version","bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"license":"Apache-2.0"}