{"_id":"@ampproject/toolbox-runtime-fetch","_rev":"35-42f90a6ec67cf6c06ee16e0e657d8154","name":"@ampproject/toolbox-runtime-fetch","description":"Download the AMP runtime","dist-tags":{"alpha":"2.7.0-alpha.1","canary":"3.0.0-canary.2","latest":"2.10.1"},"versions":{"2.2.0":{"name":"@ampproject/toolbox-runtime-fetch","version":"2.2.0","keywords":["amp","download","runtime"],"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","_id":"@ampproject/toolbox-runtime-fetch@2.2.0","maintainers":[{"name":"erwinmombay","email":"erwin.mombay@gmail.com"},{"name":"fstanis","email":"filip@stanis.me"},{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},{"name":"choumx","email":"willchou@google.com"},{"name":"ampproject-admin","email":"admin@ampproject.org"},{"name":"kristoferbaxter","email":"kbax@me.com"},{"name":"jridgewell","email":"justin+npm@ridgewell.name"}],"homepage":"https://github.com/ampproject/amp-toolbox/tree/master/packages/runtime-fetch","bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"dist":{"shasum":"dc3270baeb2d07e6cfde46f58c6167bd7b90a445","tarball":"https://registry.npmjs.org/@ampproject/toolbox-runtime-fetch/-/toolbox-runtime-fetch-2.2.0.tgz","fileCount":4,"integrity":"sha512-sTInFSBJzvkB/hRXWZkdmC+6NmKh0bzU5X5653LG/IC+KHH1BSdnAS+scYW53XLWdTlcsVcR0aIqXjs2MFS8IQ==","signatures":[{"sig":"MEYCIQD0uuz4iRho9wcUFIDELoLcfqqUzOlwAcFMz3gfh1GF/wIhAM955YzOBXNyFb2XoxOKzb3DYlUtdHfHrNvE9NzW3c5A","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15458,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJehvKtCRA9TVsSAnZWagAAH8MP/0VaBU4rhr4RDtqnOuai\nEssD5exMrP6IgMHvEC4Z7IOGugXjWwz+k6Ls5HuvQgve/TQr0dK+m4YvH6gT\nkt9NOMrMAKYJDhIdvBrgaa3nGum3F8N6WsPHv/baKkkaQ+rW3ijzqD7KKEVj\n3JMUuthU7SWulwdPzsw9ECsgdNFps35L/tcg/5Xbj9SGeMSHQt0wa98lByLu\nCMq7oty8KCT2e/tjrKmOo3oOn6mfEdpe2GyScAXuB1UfgtmHSTlBKS5dijTt\nCPStcKvk5JSp3U4/THlUPQ5wLYiCWp8RDoYSlroy/SEIKq+fON98pk8QPmTQ\nhGAQpOV8h/wgl7o0aawM/XMjBHEHZBhLsxbufwdy6SU/fJMl6HDjR9R3O6zS\nUkangk/QyH3KeqGH28SeeGKRuJ3WCoFPh+sR4nW94TiQ/1N3YKaMhvaSanCT\njsFcNBSCw/dB2cCvuHzdmyETFNLRhd8HMXz27rUm0PLUfdprN0E7DjVSaQTt\n62quU1Jqnv2DVJ19aVsqiUqB1MVULiKIalxJCFBVwGFGuCy7waJT5AGjiAGF\nCyFf1X7INbLE57WzEGORrn6T1NQFmN+YAWHYjtn/jRbMtrvG1mHCTuNXmLoI\nPzmGUk6Q+sOjD7qqJHQr7wTnCArKDtKwoH8MFXexu1DQXIiUXb+K3TlkxByZ\nqfy2\r\n=pf+J\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"e2bea7ac7d4cb6a57d196e124ee8a5f818123a02","_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"repository":{"url":"git+https://github.com/ampproject/amp-toolbox.git","type":"git","directory":"packages/runtime-fetch"},"_npmVersion":"6.13.4","description":"Download the AMP runtime","directories":{},"_nodeVersion":"12.14.1","dependencies":{"fs-extra":"9.0.0","cross-fetch":"3.0.4","at-least-node":"1.0.0","@ampproject/toolbox-core":"^2.2.0","@ampproject/toolbox-cache-list":"^2.2.0","@ampproject/toolbox-runtime-version":"^2.2.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/toolbox-runtime-fetch_2.2.0_1585902253062_0.5501079320561608","host":"s3://npm-registry-packages"}},"2.3.0":{"name":"@ampproject/toolbox-runtime-fetch","version":"2.3.0","keywords":["amp","download","runtime"],"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","_id":"@ampproject/toolbox-runtime-fetch@2.3.0","maintainers":[{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},{"name":"ampproject-admin","email":"admin@ampproject.org"},{"name":"choumx","email":"willchou@google.com"},{"name":"erwinmombay","email":"erwin.mombay@gmail.com"},{"name":"fstanis","email":"filip@stanis.me"},{"name":"jridgewell","email":"justin+npm@ridgewell.name"},{"name":"kristoferbaxter","email":"kbax@me.com"}],"homepage":"https://github.com/ampproject/amp-toolbox/tree/master/packages/runtime-fetch","bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"dist":{"shasum":"9e7d0de3d9b4e1211510de8a779624dd9fcf76a8","tarball":"https://registry.npmjs.org/@ampproject/toolbox-runtime-fetch/-/toolbox-runtime-fetch-2.3.0.tgz","fileCount":5,"integrity":"sha512-H7z+h9ocgRAyDhz0DV7aKzEskJr2jYuOW5TvXFiCK4HVYan2A2eYcFPnnCpc6nj/5Qi/EOiElaI5YbyXLFhwpg==","signatures":[{"sig":"MEQCIFgwkAdoxBwYxtJ/c8Yeq9nEQiUrFZAa/T4WgWSsYIrUAiBDDiF0+A1J+HK4qHQU2twVtlU0CcHY4/OhzEuTG5Anrw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26847,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeltSBCRA9TVsSAnZWagAAcLYP/irTQjUlTD7y9t+Sfssy\nEukT9LoYacaJha6tpRFG799GWllAxF0w6dmeVCJVLaVhOa5V1XB46ppXGFZk\nv9dhD5+7oai9O+Ktm6C/uqGpE2IRWiuEYpDzMTrRDX1eEPfJsMlJ3Qi+//cl\nhnT8MazFzY0+Jy+aLi92y62l/n2Ts2erPxx0VbVBsks9WuBRu4rUDy9112WC\nynX58nlQ32SSQ9prcH+k1oclLkQWgi0aqZX8lvb/zx3odrAQ3QA11kkUayFX\nBWizldfG4CENv7ikKNuByQk3GuNB7cSk8WXPKhQe3brNjZl8Z4Lc5KduhxfM\n4fsKxkQd7QWindl77EMwGqHSAFy3FS31olxFBJSK5g35RPBAvqsLq0nWgbGe\nV0dXML4EYuilY8fWVZOygeZ3DGTrrCfdAkVUhcaIODDXXY295uNGRBBkb8Y1\nlmZXT+Q0Wbl6PV555oEpXEeLx1e5NUrsOfivD0PWHn3rqVHMqcUyorglm0+d\nNeKKX6Bicv5plx8pfTwtL6YhLIZurfDGa39j0gaeSuHOQwb4WDwR209Egual\nVC6qY9Aqo2N0r4MLpzUD8Mp+tzrgiy8Ubg8dlWvjg9b8KbBCmgj/zb4uN29a\n823+aSyr8vh4A+qtIa+uVnD718l+r4PYAGFNSBd2KR/FfSnlKQs2f8UjJB3k\nGl4/\r\n=ps7s\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"bb7eaa6c720044e84f01c6406f5f0805dc637923","_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"repository":{"url":"git+https://github.com/ampproject/amp-toolbox.git","type":"git","directory":"packages/runtime-fetch"},"_npmVersion":"lerna/3.20.2/node@v13.12.0+x64 (darwin)","description":"Download the AMP runtime","directories":{},"_nodeVersion":"13.12.0","dependencies":{"fs-extra":"9.0.0","cross-fetch":"3.0.4","at-least-node":"1.0.0","@ampproject/toolbox-core":"^2.3.0","@ampproject/toolbox-cache-list":"^2.3.0","@ampproject/toolbox-runtime-version":"^2.3.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/toolbox-runtime-fetch_2.3.0_1586943105199_0.48082017423944334","host":"s3://npm-registry-packages"}},"2.3.1":{"name":"@ampproject/toolbox-runtime-fetch","version":"2.3.1","keywords":["amp","download","runtime"],"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","_id":"@ampproject/toolbox-runtime-fetch@2.3.1","maintainers":[{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},{"name":"ampproject-admin","email":"admin@ampproject.org"},{"name":"choumx","email":"willchou@google.com"},{"name":"erwinmombay","email":"erwin.mombay@gmail.com"},{"name":"fstanis","email":"filip@stanis.me"},{"name":"jridgewell","email":"justin+npm@ridgewell.name"},{"name":"kristoferbaxter","email":"kbax@me.com"}],"homepage":"https://github.com/ampproject/amp-toolbox/tree/master/packages/runtime-fetch","bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"dist":{"shasum":"0bd8a6a34e54325c1a4c44f546bf41ba2a125a0c","tarball":"https://registry.npmjs.org/@ampproject/toolbox-runtime-fetch/-/toolbox-runtime-fetch-2.3.1.tgz","fileCount":5,"integrity":"sha512-yLxQwQS6GTWfeYeT9Dt9qf49l1UMIwmjQ4fyarfACqknnPc/zH2kILLvDsn4uYo+NDTPMhiR2IzjvF/fHbbDsQ==","signatures":[{"sig":"MEYCIQDz8GHaW23LesfXGjvOpskeP8hEh1HC/+TPsY10GRc9ogIhAJ15yV8VmCJ/jZgS2y4w6rzWNCpvIwf7uM0Z8x7e6yf/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26871,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJescTVCRA9TVsSAnZWagAAwDYP/0inPUUyD3iEGWAh/MiQ\nilaS/33pdodboEJlxmvxf6J7hoeQKmzlYhyC1IuKqWKu74crcupVJ7FpCwEh\n9n09+xac61WVucvxgmdVRZrlu8sx2RG2xGpyfLwr9wkxkIFSzqraIxH3CTjk\npfxKOvijGFCO2KQPy88wZsq0QmsH8dyCLDcJfvY+ST6izk1ibQZyq8r4nJFM\nIcLC2tgVRlEJOPr2YUPHdbrCjnfY73lWr/jqseJGiu7BX0umzpiqMzZego/3\n4+ZUL2RphfCeFuk1wYELVtV1cbqWGTeTosLnrXY+uwU+BjfVdpKxcXBRkIv4\nQb+HFRJWe2k7ogOH+T1eFX9H9uTN2vIMWTZEBzNFmNAx+hUT35hPn1S+Mjao\nJzLEhpkgY8Urg6aBIiSNe1PULMI75nGFrfM998Jvvdb/ueuwwiIXgVLYDwSn\nskLZl3p7qBF4cbqrhqL9ZMEYlAYqu8nu3CsmIO+wkFTnA8a7P4YLqx2rBTZ2\nRJZCHGdoIYlZMI+iSMhNwVIM4z99wcgONi2fMfD6GleTIrSIPN4AgcpalBwO\nEnoMpqKdrLM0GThfag2ruGW/j2jaLp5eQJNlyRXJL0/Wf7SGv1G71/VwLvtn\nwpAhblUFXPy5YNuHH+bFTH/8BxqjU5OtfJD16dMpX1FdM5P6GGEMD8YAQSjq\nIh5l\r\n=Wep+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"2396773adfc982c044cf932dfef73b6955cb005b","_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"repository":{"url":"git+https://github.com/ampproject/amp-toolbox.git","type":"git","directory":"packages/runtime-fetch"},"_npmVersion":"lerna/3.20.2/node@v12.16.1+x64 (darwin)","description":"Download the AMP runtime","directories":{},"_nodeVersion":"12.16.1","dependencies":{"fs-extra":"9.0.0","cross-fetch":"3.0.4","at-least-node":"1.0.0","@ampproject/toolbox-core":"^2.3.0","@ampproject/toolbox-cache-list":"^2.3.0","@ampproject/toolbox-runtime-version":"^2.3.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/toolbox-runtime-fetch_2.3.1_1588708564928_0.35637079952168627","host":"s3://npm-registry-packages"}},"2.4.0-alpha.0":{"name":"@ampproject/toolbox-runtime-fetch","version":"2.4.0-alpha.0","keywords":["amp","download","runtime"],"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","_id":"@ampproject/toolbox-runtime-fetch@2.4.0-alpha.0","maintainers":[{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},{"name":"ampproject-admin","email":"admin@ampproject.org"},{"name":"choumx","email":"willchou@google.com"},{"name":"erwinmombay","email":"erwin.mombay@gmail.com"},{"name":"fstanis","email":"filip@stanis.me"},{"name":"jridgewell","email":"justin+npm@ridgewell.name"},{"name":"kristoferbaxter","email":"kbax@me.com"}],"homepage":"https://github.com/ampproject/amp-toolbox/tree/master/packages/runtime-fetch","bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"dist":{"shasum":"3709cd3fd771a715779080a096c870576a484d2b","tarball":"https://registry.npmjs.org/@ampproject/toolbox-runtime-fetch/-/toolbox-runtime-fetch-2.4.0-alpha.0.tgz","fileCount":5,"integrity":"sha512-r2bfo6dTUrHs1fBYANMhRtxxdC126AekeNunl0WU0dtwee120aODSH+6VA8iV0gv0GO+PHJu38CM71CvrHn9Fw==","signatures":[{"sig":"MEQCIA9H8EJN9syZLyMg9Gt05M2H1Tu/73ZkltVrcalcxkGHAiBhzoYLIsMMm5X2F117JV6G+ByF10zaOI0JPg6iOKAjMQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26903,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesxThCRA9TVsSAnZWagAAyiQP/17/pP3WYnLfmPmT9Xd2\n/M5dwjXmau+pqv7E/PPdjwQHSipI0PAJPSBWxOAsF/1UTw2Mm9OofT0KfkwL\n8UQrUZjn8IvVOmntPG3L4izBEC7BitteAK1i4SHsHLY4ToY3EAQYwG6kH6uo\nRMjfP2lvfEpRgo47ll+Nf6KuSak7hRu0LIu4CW/zohTPo2hHGCuA80aVcU6q\nh19qqo7q0OtX4g0umEVMC7q+xfGc/Y4NdKtDpfSQEIDEyAdHXWYGv7nk/6SX\nSQfhZyH+sjKqnRh+H4ZW9TbfAnG9QmZZ1cdomKC6bMEuRbnxoflgimJJQoJW\nnHaT9UPwoLfLtwmiQ1owFl5Dwe+nqyct+VMT8qORaFChzJm2BNQhhsbEUQ3w\ngPKOssCH1CRP3GL/MhBqm+buFNIlFLDaoKgQLugZmgyccLjXr4FcFXiS9lg0\no8cRr2btKBOC8OZXqr12zhIdXSVelhrxuAU5ldHDDl6bAGxXSvNYv3DTcQSD\ngDpNR2I8M3opUZ7uUH3zPMFTijoZA2lLZulfn8+yZdhT8VEhzAYD/Ss8SwsX\nYZreOetnUoLyPBiM3rtuRin2q2u0iFl4Dmh6zfUCx76OgWqVcaKV27kxjEXQ\no9rjzkMVZkWEfIpa2OwhHS4WoJRdfD2g/T22LTSf7CUPmpbtfm2dMk0RMBC4\nZ6Ch\r\n=Duiy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# AMP Download Runtime\n\n[![npm version](https://badge.fury.io/js/%40ampproject%2Ftoolbox-runtime-fetch.svg)](https://badge.fury.io/js/%40ampproject%2Ftoolbox-runtime-fetch)\n\nThe AMP Download Runtime tool fetches a complete, compiled AMP runtime and saves it to disk. You can use this tool to fetch [AMP Project releases](https://github.com/ampproject/amphtml/releases) from `cdn.ampproject.org` or direct it to download an AMP runtime hosted elsewhere.\n\nSpecial handling is included for amp-geo. For hosting environments that [dynamically modify `amp-geo.js`](https://github.com/ampproject/amphtml/blob/master/spec/amp-cache-guidelines.md#guidelines-adding-a-new-cache-to-the-amp-ecosystem) when served, this tool restores the content to its unpatched state.\n\n## Installation\n\nInstall via:\n\n```sh\nnpm install @ampproject/toolbox-runtime-fetch --save\n```\n\n## Options\n\n* `dest` (required `string`): Specify the destination directory where the AMP runtime should be saved. The runtime will be downloaded to an RTV-specific path under `dest`.\n* `clear` (optional `boolean`): Remove all contents from the destination directory before saving the AMP runtime. Defaults to `true`.\n* `rtv` (optional `string`): Specify the runtime version to download. Defaults to the latest production version available.\n* `ampUrlPrefix` (optional `string`): Specify the URL where the AMP runtime is hosted. Defaults to `https://cdn.ampproject.org`.\n\nNote: When downloading [AMP Project releases](https://github.com/ampproject/amphtml/releases), the runtime version (`rtv`) is obtained by prepending `01` (production) or `00` (canary) to the version. For example, the `rtv` for production release `2003101714470` is `012003101714470`.\n\n## Usage\n\nBasic usage:\n\n```js\nconst downloadRuntime = require('@ampproject/toolbox-runtime-fetch');\n\nlet result;\n\n// Download the latest AMP Project release to /tmp/amp/rtv/<rtv>,\n// where <rtv> is detected automatically\nresult = await downloadRuntime.getRuntime({\n  dest: '/tmp/amp' // Windows filesystem paths are also supported\n});\n\n// Download a specific version of the AMP runtime from Bing\nresult = await downloadRuntime.getRuntime({\n  dest: '/tmp/amp' // Windows filesystem paths are also supported\n  rtv: '011912201827130',\n  ampPrefixUrl: 'https://www.bing-amp.com'\n});\n\n/**\n * The object returned from getRuntime() includes the success or failure status,\n * as well as data about the AMP runtime that was downloaded:\n * {\n *   status: {boolean} Overall AMP runtime download status\n *   error: {string} Error message on failure\n *   count: {number} Number of files in the AMP runtime\n *   url: {string} URL to AMP runtime\n *   dest: {string} Path to directory where AMP runtime was downloaded\n *   rtv: {string} Runtime version of AMP runtime\n * }\n */\n```\n","gitHead":"aeceb5cb83cc111c08297415ab469696f2f7994e","_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"repository":{"url":"git+https://github.com/ampproject/amp-toolbox.git","type":"git","directory":"packages/runtime-fetch"},"_npmVersion":"lerna/3.20.2/node@v12.16.1+x64 (darwin)","description":"Download the AMP runtime","directories":{},"_nodeVersion":"12.16.1","dependencies":{"fs-extra":"9.0.0","cross-fetch":"3.0.4","at-least-node":"1.0.0","@ampproject/toolbox-core":"^2.4.0-alpha.0","@ampproject/toolbox-cache-list":"^2.4.0-alpha.0","@ampproject/toolbox-runtime-version":"^2.4.0-alpha.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/toolbox-runtime-fetch_2.4.0-alpha.0_1588794592635_0.47969822664537","host":"s3://npm-registry-packages"}},"2.4.0-alpha.1":{"name":"@ampproject/toolbox-runtime-fetch","version":"2.4.0-alpha.1","keywords":["amp","download","runtime"],"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","_id":"@ampproject/toolbox-runtime-fetch@2.4.0-alpha.1","maintainers":[{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},{"name":"ampproject-admin","email":"admin@ampproject.org"},{"name":"choumx","email":"willchou@google.com"},{"name":"erwinmombay","email":"erwin.mombay@gmail.com"},{"name":"fstanis","email":"filip@stanis.me"},{"name":"jridgewell","email":"justin+npm@ridgewell.name"},{"name":"kristoferbaxter","email":"kbax@me.com"}],"homepage":"https://github.com/ampproject/amp-toolbox/tree/master/packages/runtime-fetch","bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"dist":{"shasum":"89036cbe0fe1b64c4de0e00f3a3ca8898a114dc5","tarball":"https://registry.npmjs.org/@ampproject/toolbox-runtime-fetch/-/toolbox-runtime-fetch-2.4.0-alpha.1.tgz","fileCount":5,"integrity":"sha512-h44R141yJNrg9F0o+KNn7VqncyGZ2T/GoxKJknrXHVKrA6UYpWnCuzP7FAtWm1TWsRA4kBO3DQRJDjoDZJpEtw==","signatures":[{"sig":"MEQCIDHDHb/H4F/hehzEeJ46q9fn8qp8pId/RIluXsSXm0o0AiAZn59ItcwUZDKuiLgI3JCO54soxRLqA1bDFkG7AmDazA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26903,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJes+wXCRA9TVsSAnZWagAAPSAP/jesWhLhsP+utYeFdi31\niDKcwOfVJdFDiI2T+BPaovlov8lGHFFhHiEMa8D0jg0q0GOZ8RFhyTALnlIu\nW+aS+wf2OCafBqzrddHBsTI3Uo4Er94sSPF6yay3N7S21Q/aczxgntcAXp27\nT9KGCKIZIiOLXfaXjq9UaJSr/mklNNE6L1c7XVN6IQySGB6MwdHZkJZOnSQK\nWPKLEsqj1ZglWzJidd1a1q49mIq/kCY327CslEMHHNv9+adiqrqHMztDCL/m\nx3kGt0CDKlTHICODUv0qAUMt482Omq+O9i5GBmUYcrMo7gSQllcRxgBHK4xK\nxvTdlsFmYSABufSNkQclIlpobe7fcupHjukMNuyssenV3SnaZLPIFPeMvSdh\nR9HHHq5F8QNkADPdGnqjtCG68D+216itUU3XlZwyVvCJXpXzNcWnQ1iX8ptR\nwAZ+pVPPBz9/LY5egxyhnVFogo8GRbeEqDb2HTGPk/UJSPRaLjUW7W4W04Mb\nFiPivfy4cxmG888HMl288+6Ezm3C+bI/g/gsTZDL2XD65QoYGrKlo0zKeyRy\noQuTg28iQvz0F3+Hkjf7Ot+YWuVe4p5x2vJPYPsDoXgisIR6KSGDjwB8M7V/\ngrQQMuuHPMyqDoLyEgVxp0nMg8VI/zlBDsenztkJqLd+E1w6KUWXFuYiao/+\nypIB\r\n=pJsX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# AMP Download Runtime\n\n[![npm version](https://badge.fury.io/js/%40ampproject%2Ftoolbox-runtime-fetch.svg)](https://badge.fury.io/js/%40ampproject%2Ftoolbox-runtime-fetch)\n\nThe AMP Download Runtime tool fetches a complete, compiled AMP runtime and saves it to disk. You can use this tool to fetch [AMP Project releases](https://github.com/ampproject/amphtml/releases) from `cdn.ampproject.org` or direct it to download an AMP runtime hosted elsewhere.\n\nSpecial handling is included for amp-geo. For hosting environments that [dynamically modify `amp-geo.js`](https://github.com/ampproject/amphtml/blob/master/spec/amp-cache-guidelines.md#guidelines-adding-a-new-cache-to-the-amp-ecosystem) when served, this tool restores the content to its unpatched state.\n\n## Installation\n\nInstall via:\n\n```sh\nnpm install @ampproject/toolbox-runtime-fetch --save\n```\n\n## Options\n\n* `dest` (required `string`): Specify the destination directory where the AMP runtime should be saved. The runtime will be downloaded to an RTV-specific path under `dest`.\n* `clear` (optional `boolean`): Remove all contents from the destination directory before saving the AMP runtime. Defaults to `true`.\n* `rtv` (optional `string`): Specify the runtime version to download. Defaults to the latest production version available.\n* `ampUrlPrefix` (optional `string`): Specify the URL where the AMP runtime is hosted. Defaults to `https://cdn.ampproject.org`.\n\nNote: When downloading [AMP Project releases](https://github.com/ampproject/amphtml/releases), the runtime version (`rtv`) is obtained by prepending `01` (production) or `00` (canary) to the version. For example, the `rtv` for production release `2003101714470` is `012003101714470`.\n\n## Usage\n\nBasic usage:\n\n```js\nconst downloadRuntime = require('@ampproject/toolbox-runtime-fetch');\n\nlet result;\n\n// Download the latest AMP Project release to /tmp/amp/rtv/<rtv>,\n// where <rtv> is detected automatically\nresult = await downloadRuntime.getRuntime({\n  dest: '/tmp/amp' // Windows filesystem paths are also supported\n});\n\n// Download a specific version of the AMP runtime from Bing\nresult = await downloadRuntime.getRuntime({\n  dest: '/tmp/amp' // Windows filesystem paths are also supported\n  rtv: '011912201827130',\n  ampPrefixUrl: 'https://www.bing-amp.com'\n});\n\n/**\n * The object returned from getRuntime() includes the success or failure status,\n * as well as data about the AMP runtime that was downloaded:\n * {\n *   status: {boolean} Overall AMP runtime download status\n *   error: {string} Error message on failure\n *   count: {number} Number of files in the AMP runtime\n *   url: {string} URL to AMP runtime\n *   dest: {string} Path to directory where AMP runtime was downloaded\n *   rtv: {string} Runtime version of AMP runtime\n * }\n */\n```\n","gitHead":"64a25a757ff6d2acc9a7d59ec718a025c713b63e","_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"repository":{"url":"git+https://github.com/ampproject/amp-toolbox.git","type":"git","directory":"packages/runtime-fetch"},"_npmVersion":"lerna/3.20.2/node@v12.16.1+x64 (darwin)","description":"Download the AMP runtime","directories":{},"_nodeVersion":"12.16.1","dependencies":{"fs-extra":"9.0.0","cross-fetch":"3.0.4","at-least-node":"1.0.0","@ampproject/toolbox-core":"^2.4.0-alpha.1","@ampproject/toolbox-cache-list":"^2.4.0-alpha.1","@ampproject/toolbox-runtime-version":"^2.4.0-alpha.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/toolbox-runtime-fetch_2.4.0-alpha.1_1588849686897_0.6011408831283931","host":"s3://npm-registry-packages"}},"2.5.0":{"name":"@ampproject/toolbox-runtime-fetch","version":"2.5.0","keywords":["amp","download","runtime"],"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","_id":"@ampproject/toolbox-runtime-fetch@2.5.0","maintainers":[{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},{"name":"ampproject-admin","email":"admin@ampproject.org"},{"name":"choumx","email":"willchou@google.com"},{"name":"erwinmombay","email":"erwin.mombay@gmail.com"},{"name":"fstanis","email":"filip@stanis.me"},{"name":"jridgewell","email":"justin+npm@ridgewell.name"},{"name":"kristoferbaxter","email":"kbax@me.com"}],"homepage":"https://github.com/ampproject/amp-toolbox/tree/master/packages/runtime-fetch","bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"dist":{"shasum":"6f2eb4d097a2be3dba5f96cff7a80811452a8d7f","tarball":"https://registry.npmjs.org/@ampproject/toolbox-runtime-fetch/-/toolbox-runtime-fetch-2.5.0.tgz","fileCount":5,"integrity":"sha512-F6QRI8+v6owo5g/VL2G7TbyxG7rvxTDMy/At5aMpcLGTdjVNKwWEl8bp7fITVOm5xpQuw1kDO7ktkKuukV/67g==","signatures":[{"sig":"MEYCIQCbBsXRLimA8QxL0KzFxYiYPl6KzvFzUS2epRp4FDk1LwIhAJd6NYLCXVZ3Q6wrPyWwiuSwsG6Konkt6FsLhhWoLjDT","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26871,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0PaOCRA9TVsSAnZWagAA9bsP/idGsOyv7M0TqdM39Y34\n0eu3UQRawMS/QDgPEVs+iSnWUnF2WHA/CYRL8h2fSAmqPWIEOzzky2VQsO7Y\nBx3VhaJkiBMqttXAol0SDEnSxhB6ekKiFCL8ZGPJ99UHXiBUifgVaFYH8CKW\nVwfrpjw0JmUSI7dgCbdzzGfLfsdRlxaI0uwv7xCroaFHIewG/M4T0HKTsXgD\nWoXx2VCapBojrCRpQ6tDbCKJ11DvW4YOfZ1/LeKqQreSlZESUvmt0YUqt+s+\nZhYERbV5kZkIAF6gnZuB2wY8y902hxNkR4xLMfC0sT6FcjL1Nly9/HRI0EUk\nyFuU0hNhBcmFYQWZtAMAR/tMSaff//alUUH8cGN8Fxn0J6OLpH0t09NQB+BX\n6Eqh1kGUcyn0FGgiACqlUFx25HgU+dWFFrAgss3lxcIl8DCR8v4YLIW+JF04\n05SvJhUR0A+be3sO2gErjzDkRaohFRfD/5bs/5986IuVYuL4tnGQUme1BKgZ\n2yM56teAZIe65hGOJgXoOAuEKVGu/Z3TRhZggn2Lwn6i13pWKc5UzufglLaR\nxm6mhBi4U7TVbiRPbACP+cbmNwhvclmJ/O1vPk723WSYhUz/nCVyrlla9Mgg\ncO1cNJ4OhnWrWUrqKajzhcGDD2sAV47dSTkYWSHOB/8HSwlM96YqraszEAXa\nxZY2\r\n=k0EQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"c26612cc3d7408fdc1451bcc8e0fecd67ac9661d","_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"repository":{"url":"git+https://github.com/ampproject/amp-toolbox.git","type":"git","directory":"packages/runtime-fetch"},"_npmVersion":"lerna/3.22.0/node@v12.16.1+x64 (darwin)","description":"Download the AMP runtime","directories":{},"_nodeVersion":"12.16.1","dependencies":{"fs-extra":"9.0.0","cross-fetch":"3.0.4","at-least-node":"1.0.0","@ampproject/toolbox-core":"^2.5.0","@ampproject/toolbox-cache-list":"^2.5.0","@ampproject/toolbox-runtime-version":"^2.5.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/toolbox-runtime-fetch_2.5.0_1590752909963_0.42436588515608964","host":"s3://npm-registry-packages"}},"2.5.1":{"name":"@ampproject/toolbox-runtime-fetch","version":"2.5.1","keywords":["amp","download","runtime"],"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","_id":"@ampproject/toolbox-runtime-fetch@2.5.1","maintainers":[{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},{"name":"ampproject-admin","email":"admin@ampproject.org"},{"name":"choumx","email":"willchou@google.com"},{"name":"erwinmombay","email":"erwin.mombay@gmail.com"},{"name":"fstanis","email":"filip@stanis.me"},{"name":"jridgewell","email":"justin+npm@ridgewell.name"},{"name":"kristoferbaxter","email":"kbax@me.com"},{"name":"samouri","email":"jzfisgreat@gmail.com"}],"homepage":"https://github.com/ampproject/amp-toolbox/tree/master/packages/runtime-fetch","bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"dist":{"shasum":"99828175c8038676c7927c71b548886dbfa60c00","tarball":"https://registry.npmjs.org/@ampproject/toolbox-runtime-fetch/-/toolbox-runtime-fetch-2.5.1.tgz","fileCount":5,"integrity":"sha512-D+CX2KMKtImLuy5W/NCqtO+b0NI4bUS4XwSgapwzAzBi/UXO5E+yRwboS5qc3o88LWsF4LprdMj3EBc7iI6Ypw==","signatures":[{"sig":"MEUCIB3GBEo4GcQVYUmM8toyWEmGJL3vDCKtCMpCRmVe22QLAiEA81eJ5+BCljy2Pvnzc98NaaNwQaWxDHtLkd9y/lorAmQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26871,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe3zquCRA9TVsSAnZWagAATdgP/RIjWAKbtpqHxOB4WKN9\nprI2ZU+b6k/6jAGqpjE6SIIVutY0PQHuCuNZKGtMnMMwLz8qcHqwpM6m9J5i\no6xU9E4oSyedNjg5700SrHXxCXT5fpBBnejZYdnLUZHWLqWHtecQmZ27n5vg\nG7DOtzWIdq+EhMrzZYYRgfWwCGMTq0BWNEhuNhuVzUlkGJO2JcJh9l868hYX\n9nTu0zvdYdTLCZxpulnn0AwyuoNmObzzr7kRAs5X+w3sSUtyZz+ooqqfC47j\n4MwbktzUoI8ReAHRu1CfYnnD4us9mug2Q04F1BBQ4xuI72itmDG/s6QPXnEr\nHuIGpayHGUIMUn+uMy+QnoJd1vyFV2gHT6+gXkCDX4kW5ZCK1YZ57EkpGY7w\nG1lHxJf0UmP1fdngEqjdFkcU0fqKpo1Ws6cjBho8kZ/rcHpmao9GYOik2uTJ\nhbAIyHIh1/P4gLAIuFb14gSiXpr2TKz9z0+i3cdvl0NR/7vvlGKywBcWruyg\njPISaAZ+o710s9IB+Vsisb3oBJbTwRQWN1pBQwZFaUcRBe/eC/QUjmj2Bb4b\n89bl5YZkZ1uw35mxJMjiHM0RZIaJg4ZWYNL8yCsKS28ictvS1+xCZyhSkkzu\n5tIW6u3szKrnZaqLnVcpSw/OG9oLdy0bFVkray5aP4xFD0JdWSMSv7BG4wDV\nOvbn\r\n=x7s1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"f92ba13281ecf3e624ee8285f2deebee18d580bd","_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"repository":{"url":"git+https://github.com/ampproject/amp-toolbox.git","type":"git","directory":"packages/runtime-fetch"},"_npmVersion":"lerna/3.22.0/node@v12.16.1+x64 (darwin)","description":"Download the AMP runtime","directories":{},"_nodeVersion":"12.16.1","dependencies":{"fs-extra":"9.0.1","cross-fetch":"3.0.4","at-least-node":"1.0.0","@ampproject/toolbox-core":"^2.5.1","@ampproject/toolbox-cache-list":"^2.5.1","@ampproject/toolbox-runtime-version":"^2.5.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/toolbox-runtime-fetch_2.5.1_1591687854328_0.19098801179500624","host":"s3://npm-registry-packages"}},"2.5.4":{"name":"@ampproject/toolbox-runtime-fetch","version":"2.5.4","keywords":["amp","download","runtime"],"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","_id":"@ampproject/toolbox-runtime-fetch@2.5.4","maintainers":[{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},{"name":"ampproject-admin","email":"admin@ampproject.org"},{"name":"choumx","email":"willchou@google.com"},{"name":"erwinmombay","email":"erwin.mombay@gmail.com"},{"name":"fstanis","email":"filip@stanis.me"},{"name":"jridgewell","email":"justin+npm@ridgewell.name"},{"name":"kristoferbaxter","email":"kbax@me.com"},{"name":"samouri","email":"jzfisgreat@gmail.com"}],"homepage":"https://github.com/ampproject/amp-toolbox/tree/main/packages/runtime-fetch","bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"dist":{"shasum":"f6d74c6c67a4dbc9d200fea7b4f7bf2ab023b29e","tarball":"https://registry.npmjs.org/@ampproject/toolbox-runtime-fetch/-/toolbox-runtime-fetch-2.5.4.tgz","fileCount":5,"integrity":"sha512-8EMVjdZLMWN4XdPeGDlHaxkr0UpdR1efWpMLyiXRdPgAq4OMy5CUVognqBTrRE67jGH9Jg4jUuZU0TpF9hrUNg==","signatures":[{"sig":"MEQCIHxpaTXk3hn20R2h8YLF2mTD9itPzADr7EJ33SJ85yx9AiBo82o8M6dlGsE3K9o4a5IESmydOZ5iI+Nr/2V3NAFp/w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26867,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8QvuCRA9TVsSAnZWagAAol4P/2f9p11+n3ARvoMxY39x\nPp5RuKvlZ+CJJAPErC9GpxeQJ9TzfinMOZseqevOF9GSI8Izc/EB7CQTqPcp\nQiA4gk1pAW676HhRk6U75p0MvZI3PWWIKrtptVLYPjq9eboaF1uFdEQ/yW5z\n0wmjaHd81A4nhfbn558bbpgLEk2LvqVutb+f57mMs+zNtq+W9ZJhEYHqCt6U\n706Dimt0Pk+SYRT/S3BUUUjzGqYbjzz5kYWQ1k2qnsgDSWYSGXfGR8/hjhHG\n6Ol5eucepQT+Isj6oBgQ93vsWSpmlqCQ0ZjBjHqjLs1Ko7tE4wcG16sNMorw\n9nVWJqiHf0CY198l8bSAu/CC2ZGzP1L2ySZ2jgZ+7zjdx0D2MDuggQHft5pK\nhvBxN5xJ4U+8Eo8eQVmjrLMb/ACXSojBiES+XZ9x7nRhbom+Q+2LD0qNBLt+\nLiqhfdzLqI07Z/KKUW1ydRTqNjEJSZ8EAiUOKxYcmFx/5mO5BvB6M4fd/+Rv\nUoar+SQKPdFtz6ay67MSnoFTacPE+oNwHIXd+ECYvAH5pqRIQGSLCU4oSzxb\nriUHpNEsqHM+V7o9aHLdG/O/N4Nl8o2924Ooj5B2o7yIWlwg4coGlNgHUyks\nsMahftwxDmQ1kj1YvbLIEFLmawfNzquoA9E/5eCCJNI7gCBkENvMw6VGRDVY\nmr7d\r\n=0Og/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"c194eb829c2d0d4cda21c961107d73bd7528f53f","_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"repository":{"url":"git+https://github.com/ampproject/amp-toolbox.git","type":"git","directory":"packages/runtime-fetch"},"_npmVersion":"lerna/3.22.1/node@v12.16.1+x64 (darwin)","description":"Download the AMP runtime","directories":{},"_nodeVersion":"12.16.1","dependencies":{"fs-extra":"9.0.1","cross-fetch":"3.0.5","at-least-node":"1.0.0","@ampproject/toolbox-core":"^2.5.4","@ampproject/toolbox-cache-list":"^2.5.4","@ampproject/toolbox-runtime-version":"^2.5.4"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/toolbox-runtime-fetch_2.5.4_1592855534298_0.568798502841122","host":"s3://npm-registry-packages"}},"2.5.13":{"name":"@ampproject/toolbox-runtime-fetch","version":"2.5.13","keywords":["amp","download","runtime"],"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","_id":"@ampproject/toolbox-runtime-fetch@2.5.13","maintainers":[{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},{"name":"ampproject-admin","email":"admin@ampproject.org"},{"name":"choumx","email":"willchou@google.com"},{"name":"erwinmombay","email":"erwin.mombay@gmail.com"},{"name":"fstanis","email":"filip@stanis.me"},{"name":"jridgewell","email":"justin+npm@ridgewell.name"},{"name":"kristoferbaxter","email":"kbax@me.com"},{"name":"samouri","email":"jzfisgreat@gmail.com"}],"homepage":"https://github.com/ampproject/amp-toolbox/tree/main/packages/runtime-fetch","bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"dist":{"shasum":"6c433b4409d489a4018812e1d29b1c63deb28d52","tarball":"https://registry.npmjs.org/@ampproject/toolbox-runtime-fetch/-/toolbox-runtime-fetch-2.5.13.tgz","fileCount":5,"integrity":"sha512-2CM0g0njwsvUQ6AKsKiawa8frSKWAQvzayc/LhwSCxZRiZwBx8Q9/RlXdwwF7dX/SQ4zuVDJppkjaiGGyuTZ6A==","signatures":[{"sig":"MEQCID6cLu41P8GDR1iWomUuWTQsNpIBO+iF7yW5l37tqYKJAiANXhAqv5A0ApCuZ/RVnkBd52BX6rOw0yuQNA03B1k6IA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26858,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfD1+xCRA9TVsSAnZWagAA43EP/2NHjq8qZDTWwY0h5Fge\nAUllQoYyyvnS5a60aYe79sNHG8ygYzeItsBOTMNrYer9paHymHqHHBdJdFov\niOOyZpYiYKESJchOT4P5o2RLBvLhNshBxAPYdOJzw+bt0Vsjp4rO6elZclVz\n2hm/EfqSeA4XVBrmaawv6BrAiE1dweUukWZSLk8u9v2QVFiW0ZDU6PDGzPxw\nRBpgWCuCYgRFLZ2wa3ppqdjHB1Ka24hglQ6Cb8iK6xWHWMehP/QXEUpwXqJo\nK7cOe3ozAuBJkmKVQoPTpuEKw8pIkdsa41i7OVoXYkBY+J3eIJvC1L/XHaZQ\nT814EJT854W00+YJ9DlgYfoZRWmNSN8SJKfgrPdJGILD20tSof9g1ABRqim1\nZcz82fTaB6T5IdYH6SJN02upFP6cAZjY9BO2T6KohATmZ4SbmIR5MB4pW9gy\n7VSAYmcMhaLCxy9gD7q6i/4g0gi8mZz7M/JEU5W+7DV2QKNPTHuJ7IHEbUG8\nPj16k0oUy9prFk8gV/PQCYAlNaEb3M/f3p1rJPjIEH/o7ME4SilwAwWe6N4j\n0N0AwUTKOJbZ+BDccLFYbGDbHcl/Nav1oTaIkIhd6s6QRzJsk8Z5CWCluMq+\nSzydEHQki8KZgrDcViaJbqSaT8tjvGB4GV0mL2NPQJW9ZETfHJKHVgeE6Moq\n9YzT\r\n=mMdM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"fb52bb38f7c526f545bfa28a9b696df432d96d4f","_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"repository":{"url":"git+https://github.com/ampproject/amp-toolbox.git","type":"git","directory":"packages/runtime-fetch"},"_npmVersion":"lerna/3.22.1/node@v12.16.1+x64 (darwin)","description":"Download the AMP runtime","directories":{},"_nodeVersion":"12.16.1","dependencies":{"fs-extra":"9.0.1","cross-fetch":"3.0.5","at-least-node":"1.0.0","@ampproject/toolbox-core":"^2.5.4","@ampproject/toolbox-cache-list":"^2.5.4","@ampproject/toolbox-runtime-version":"^2.5.4"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/toolbox-runtime-fetch_2.5.13_1594843056747_0.5216012836971291","host":"s3://npm-registry-packages"}},"2.6.0":{"name":"@ampproject/toolbox-runtime-fetch","version":"2.6.0","keywords":["amp","download","runtime"],"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","_id":"@ampproject/toolbox-runtime-fetch@2.6.0","maintainers":[{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},{"name":"ampproject-admin","email":"admin@ampproject.org"},{"name":"choumx","email":"willchou@google.com"},{"name":"erwinmombay","email":"erwin.mombay@gmail.com"},{"name":"fstanis","email":"filip@stanis.me"},{"name":"jridgewell","email":"justin+npm@ridgewell.name"},{"name":"kristoferbaxter","email":"kbax@me.com"},{"name":"patrickkettner","email":"patrickkettner@gmail.com"},{"name":"samouri","email":"jzfisgreat@gmail.com"}],"homepage":"https://github.com/ampproject/amp-toolbox/tree/main/packages/runtime-fetch","bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"dist":{"shasum":"e539877635c21c19385eb646d2dcfee04c3c74d0","tarball":"https://registry.npmjs.org/@ampproject/toolbox-runtime-fetch/-/toolbox-runtime-fetch-2.6.0.tgz","fileCount":5,"integrity":"sha512-UEcPIJ0VRS296MdNcQ1tV37O/e8I4w01RDh+5LSA7y5K61Don/pNADnivO1dOoNAVCVMZevdpc9hglps1leiKg==","signatures":[{"sig":"MEYCIQDUQRQl08D37COXg2YQnHP0QsAYeft68OULlDxkp/uJYwIhAKBpncMMSHVW4spg+pfIt2cxlFHV8E9Ukb9g3LFW5cou","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26857,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMUETCRA9TVsSAnZWagAAjqIQAJwz37M+9wrfQuq6lA5E\nGgiNWt421L+peP0F0BR8KdTb70hD7lxyErKtySeWlYd8RA+QlgqOr6y4jnAK\n9jViz4cFPtwwesYXo8cR+P3VdjBgWWxsUMkr8eIarGg5M0ML6YeaW+BEIOAp\nCVjfxZyoSbYAINP0fkzYIB0Lm82CKD+N8c8OXe7+GLiookNdJs1xg1+gy3Y6\nf5ONZyajXbDCnI9j0mSPMeS08LEx7W5J5BMEC/iB9TLDIqoOJXhMD+Ck+ZqE\n0lbgpXX5weLNJCV+mRCwGUpVEntOhcdJQB9/3E6jOYPzhoGGcvFXzS1AwDkr\n5iixy9di4x4kX88JF4knby9kKPbX0J8zs5e53CnURNTTRbhcl6cAqq7wlsb5\nNX0z3Jeq1AAZyt3hxj0sL+MrjDLr5VG3l/eRf8ykWoP63YlS55hPflFYJG3H\ndkWAPqQX2LR3UjYeaHLyS7Rz3WVC0UW8SF+dWqMhN4vPzzTg0p+psPNjKeJT\nbQDLi3k2FUaLxda/ibTlFauoU42oWfrF7z7iAxlRN4Zo0EUez1p5wxt1RP0X\ntk2I3T0f//C0Od4X70GdjNUQWNj8t0MYNoSD6V4G18kev1PhNOkQIuhRIDaM\nx8wGtnUEpmDq7okhSUUwrJSg0fV5cPiDitsvVt5T6+hRMys3T+N0xEC2aFgx\nJa6K\r\n=InR1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"1e47f01b6630a01581b7df014b76d9ba0f68542c","_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"repository":{"url":"git+https://github.com/ampproject/amp-toolbox.git","type":"git","directory":"packages/runtime-fetch"},"_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (darwin)","description":"Download the AMP runtime","directories":{},"_nodeVersion":"12.18.3","dependencies":{"fs-extra":"9.0.1","cross-fetch":"3.0.5","at-least-node":"1.0.0","@ampproject/toolbox-core":"^2.6.0","@ampproject/toolbox-cache-list":"^2.6.0","@ampproject/toolbox-runtime-version":"^2.6.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/toolbox-runtime-fetch_2.6.0_1597063443524_0.4632126818105544","host":"s3://npm-registry-packages"}},"2.7.0-alpha.1":{"name":"@ampproject/toolbox-runtime-fetch","version":"2.7.0-alpha.1","keywords":["amp","download","runtime"],"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","_id":"@ampproject/toolbox-runtime-fetch@2.7.0-alpha.1","maintainers":[{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},{"name":"ampproject-admin","email":"admin@ampproject.org"},{"name":"caroqliu","email":"carolineliu@google.com"},{"name":"choumx","email":"willchou@google.com"},{"name":"erwinmombay","email":"erwin.mombay@gmail.com"},{"name":"fstanis","email":"filip@stanis.me"},{"name":"jridgewell","email":"justin+npm@ridgewell.name"},{"name":"kristoferbaxter","email":"kbax@me.com"},{"name":"patrickkettner","email":"patrickkettner@gmail.com"},{"name":"rsimha","email":"rsimha@amp.dev"},{"name":"samouri","email":"jzfisgreat@gmail.com"}],"homepage":"https://github.com/ampproject/amp-toolbox/tree/main/packages/runtime-fetch","bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"dist":{"shasum":"4de2ee6db59f7d2ae2ffe1d701242dff671bf0c7","tarball":"https://registry.npmjs.org/@ampproject/toolbox-runtime-fetch/-/toolbox-runtime-fetch-2.7.0-alpha.1.tgz","fileCount":5,"integrity":"sha512-hkX/DHXrIFIO5J3omR04GoRy6abZQBxlprA6OEhqZyL6gMYEwoTUjLl58T466uMgvCk32s2vptY7J6FK3nOlZQ==","signatures":[{"sig":"MEQCIQC/c31ibvwryk+o7S/R2pyG+9AwM01WBeUANGWJNf/f4wIfeL6UgyjIJaAPfe2AXTt0DvalTnokYdrmuuzYz2WUDQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26849,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPVR5CRA9TVsSAnZWagAATRAP/3qIm/4zPzk6PKTp0Kuf\nT/yItMfcZDHnjf1pjwFTFMeIGHp2TkXzGg4PDDPEzrzZy4c+uN+CbfdmEVjZ\napGOIOTXoB0DQfh9apL9vOAS8rQxaRo6GLv0bhIHppQjtc5rIsebyaUeZLcj\nrsco1vBf4FM1X53TjxZRpQrxFRy3hyG6S2QZsSE00sO75dICb2SLGuUzbm29\nFvTdN+KvQv4lW5esgqUpQJg3f3SyQfudRdI+ilIcdhm9C+1CKzH8xYF6cBtE\n4NDFy6l9VKJ6bzdfzbMHC4AlK5WgWPJOotUbT66RmhZ4rcqR+DAdPuekDLaC\n2l2bkHiPaS5VBg/FF8mPysngm5I5mapcy1IYjYG7yiqGsb7wFpy4D8Jt58MA\nE0uuiPYODKQE55WCr9nYHR2QeTqh5VB0Ejww+ikopCUgDyLF8IxtksvhIRwh\nogYLETN04kQulVENeL5nkw/aHFD8q9A4HRCdcLc/kXId3mIlUEHXj+R4pqK6\nWXM6npYk1r38EQPnfjSONVOH7buMZruTUCd0WZ0lNAvSZxMscL85KmamzKZ9\ngPauRwbG460P33QcE7YTLgOKhcBqzSWq0XindtpHnJdPxnxX/uBeOJHeA5MF\n1QroC5MPEoE5fIyM+GdduiHyPWvSaarRHMY7Wavps+WurxWBBtTXj4JMZ0WG\nzBtY\r\n=wqY4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# AMP Download Runtime\n\n[![npm version](https://badge.fury.io/js/%40ampproject%2Ftoolbox-runtime-fetch.svg)](https://badge.fury.io/js/%40ampproject%2Ftoolbox-runtime-fetch)\n\nThe AMP Download Runtime tool fetches a complete, compiled AMP runtime and saves it to disk. You can use this tool to fetch [AMP Project releases](https://github.com/ampproject/amphtml/releases) from `cdn.ampproject.org` or direct it to download an AMP runtime hosted elsewhere.\n\nSpecial handling is included for amp-geo. For hosting environments that [dynamically modify `amp-geo.js`](https://github.com/ampproject/amphtml/blob/main/spec/amp-cache-guidelines.md#guidelines-adding-a-new-cache-to-the-amp-ecosystem) when served, this tool restores the content to its unpatched state.\n\n## Installation\n\nInstall via:\n\n```sh\nnpm install @ampproject/toolbox-runtime-fetch --save\n```\n\n## Options\n\n- `dest` (required `string`): Specify the destination directory where the AMP runtime should be saved. The runtime will be downloaded to an RTV-specific path under `dest`.\n- `clear` (optional `boolean`): Remove all contents from the destination directory before saving the AMP runtime. Defaults to `true`.\n- `rtv` (optional `string`): Specify the runtime version to download. Defaults to the latest production version available.\n- `ampUrlPrefix` (optional `string`): Specify the URL where the AMP runtime is hosted. Defaults to `https://cdn.ampproject.org`.\n\nNote: When downloading [AMP Project releases](https://github.com/ampproject/amphtml/releases), the runtime version (`rtv`) is obtained by prepending `01` (production) or `00` (canary) to the version. For example, the `rtv` for production release `2003101714470` is `012003101714470`.\n\n## Usage\n\nBasic usage:\n\n```js\nconst downloadRuntime = require('@ampproject/toolbox-runtime-fetch');\n\nlet result;\n\n// Download the latest AMP Project release to /tmp/amp/rtv/<rtv>,\n// where <rtv> is detected automatically\nresult = await downloadRuntime.getRuntime({\n  dest: '/tmp/amp' // Windows filesystem paths are also supported\n});\n\n// Download a specific version of the AMP runtime from Bing\nresult = await downloadRuntime.getRuntime({\n  dest: '/tmp/amp' // Windows filesystem paths are also supported\n  rtv: '011912201827130',\n  ampPrefixUrl: 'https://www.bing-amp.com'\n});\n\n/**\n * The object returned from getRuntime() includes the success or failure status,\n * as well as data about the AMP runtime that was downloaded:\n * {\n *   status: {boolean} Overall AMP runtime download status\n *   error: {string} Error message on failure\n *   count: {number} Number of files in the AMP runtime\n *   url: {string} URL to AMP runtime\n *   dest: {string} Path to directory where AMP runtime was downloaded\n *   rtv: {string} Runtime version of AMP runtime\n * }\n */\n```\n","gitHead":"cdab35d31a9d431c66cda62174fb28aff93287eb","_npmUser":{"name":"caroqliu","email":"carolineliu@google.com"},"repository":{"url":"git+https://github.com/ampproject/amp-toolbox.git","type":"git","directory":"packages/runtime-fetch"},"_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (darwin)","description":"Download the AMP runtime","directories":{},"_nodeVersion":"12.18.3","dependencies":{"fs-extra":"9.0.1","cross-fetch":"3.0.5","at-least-node":"1.0.0","@ampproject/toolbox-core":"^2.6.0","@ampproject/toolbox-cache-list":"^2.6.0","@ampproject/toolbox-runtime-version":"^2.7.0-alpha.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/toolbox-runtime-fetch_2.7.0-alpha.1_1597854841298_0.9071297751360738","host":"s3://npm-registry-packages"}},"2.7.1-alpha.0":{"name":"@ampproject/toolbox-runtime-fetch","version":"2.7.1-alpha.0","keywords":["amp","download","runtime"],"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","_id":"@ampproject/toolbox-runtime-fetch@2.7.1-alpha.0","maintainers":[{"name":"alanorozco","email":"orozcoalan@gmail.com"},{"name":"patrickkettner","email":"patrickkettner@gmail.com"},{"name":"dvoytenko","email":"dvoytenko@gmail.com"},{"name":"rsimha","email":"rsimha@amp.dev"},{"name":"caroqliu","email":"carolineliu@google.com"},{"name":"samouri","email":"jzfisgreat@gmail.com"},{"name":"erwinmombay","email":"erwin.mombay@gmail.com"},{"name":"fstanis","email":"filip@stanis.me"},{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},{"name":"choumx","email":"willchou@google.com"},{"name":"ampproject-admin","email":"admin@ampproject.org"},{"name":"kristoferbaxter","email":"kbax@me.com"},{"name":"jridgewell","email":"justin+npm@ridgewell.name"}],"homepage":"https://github.com/ampproject/amp-toolbox/tree/main/packages/runtime-fetch","bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"dist":{"shasum":"e5b4b7937a2838b45e8adab22f3ba94a96332eec","tarball":"https://registry.npmjs.org/@ampproject/toolbox-runtime-fetch/-/toolbox-runtime-fetch-2.7.1-alpha.0.tgz","fileCount":4,"integrity":"sha512-cjn/NqWoq7/y2OjGUHiHLHTSljatvKQ9ag6aF5TX1G4YG8lTQ6Hpfe/jzk6olNMP2TLkj4xQdwwZXTeQQNeIqw==","signatures":[{"sig":"MEYCIQDnouUnQGkDit634UomZ7CfEygMn73ffzQGxb6dU5xVhwIhAP6FVdnRRHTaLmEMh6fFkNTBa1aXIyyJKJz9F/EfHWpW","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15522,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfxpY5CRA9TVsSAnZWagAAIT0QAJjupfvxqiQwjBwT5Nd/\nrQFg8669CR3JHgD/zpW5Qg3TciI+cC4W+ypTTCrPq5YOoWJWncU5AthPUlq2\nH3GgeFblS5MyKHQHOk9uH9TL3jNzY88mgLQYc8UCB8CL0QP7nLMVaLQ4+Emf\ngCc8FZpfM333EvgadeY9hqfgYGM/VSrWdbeAuc+rCAxrOKGUhIRJT81tWRca\n8fHhga72aAJnq2/Mq99b9czo+goeWwF4gbSjhYErrDEPW+T2pp9/+UuUR256\nsE4dUkBxGKZfycSesR3f3oMZLOtYsJIBrcDkStfCN9UZGZCkf5YuenTAz0I9\nwblAQ+LjOY0oPHGQ3qkXjOxPzI8Nar2jFellpmRGHnAdlaXcOymHTm5dQ6V+\ngR70II5g4lv/qOWBajtmWyCCdbD+DoWKI6IJ4X9Y3Yds1wEqjXhto/d6mBRt\nUFkMkX/VcUn2JOwHS5ahtyv0gWVt4SIQZnD7k0AJFQbLPTuogkubelZYAnja\nw1Dkqd6pVEMWW5NOPl3CaQWYzCGPtsbdnNQHUgeU5I8ebWnwWtZp723JVmz2\n+Qglt7DBLa+S48HCjuZMgNsDqK3fzBDyISWyCqAQ0rozDcEQDZXi4wLQbFNk\nilCTyt7eEiM4nGvU+qO07GXpkYqywFrWhmS634tjamWsoNbrXBj9lVeQ8UdQ\nT2vJ\r\n=Rvjh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"c26612cc3d7408fdc1451bcc8e0fecd67ac9661d","_npmUser":{"name":"patrickkettner","email":"patrickkettner@gmail.com"},"repository":{"url":"git+https://github.com/ampproject/amp-toolbox.git","type":"git","directory":"packages/runtime-fetch"},"_npmVersion":"6.14.8","description":"Download the AMP runtime","directories":{},"_nodeVersion":"14.15.1","dependencies":{"fs-extra":"9.0.1","cross-fetch":"3.0.6","at-least-node":"1.0.0","@ampproject/toolbox-core":"^2.7.1-alpha.0","@ampproject/toolbox-cache-list":"^2.7.1-alpha.0","@ampproject/toolbox-runtime-version":"^2.7.1-alpha.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/toolbox-runtime-fetch_2.7.1-alpha.0_1606850104673_0.42794698451114654","host":"s3://npm-registry-packages"}},"2.7.1":{"name":"@ampproject/toolbox-runtime-fetch","version":"2.7.1","keywords":["amp","download","runtime"],"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","_id":"@ampproject/toolbox-runtime-fetch@2.7.1","maintainers":[{"name":"alanorozco","email":"orozcoalan@gmail.com"},{"name":"patrickkettner","email":"patrickkettner@gmail.com"},{"name":"dvoytenko","email":"dvoytenko@gmail.com"},{"name":"rsimha","email":"rsimha@amp.dev"},{"name":"caroqliu","email":"carolineliu@google.com"},{"name":"samouri","email":"jzfisgreat@gmail.com"},{"name":"erwinmombay","email":"erwin.mombay@gmail.com"},{"name":"fstanis","email":"filip@stanis.me"},{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},{"name":"choumx","email":"willchou@google.com"},{"name":"ampproject-admin","email":"admin@ampproject.org"},{"name":"kristoferbaxter","email":"kbax@me.com"},{"name":"jridgewell","email":"justin+npm@ridgewell.name"}],"homepage":"https://github.com/ampproject/amp-toolbox/tree/main/packages/runtime-fetch","bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"dist":{"shasum":"e3dc79b25cb19823953732c88dddac4d83d10ca7","tarball":"https://registry.npmjs.org/@ampproject/toolbox-runtime-fetch/-/toolbox-runtime-fetch-2.7.1.tgz","fileCount":5,"integrity":"sha512-+vdssPlo26NvLd6ZFHSn0pVoap0hxMDM6Aq9qq5gr5S6eY/vWUAOtZLYGhxhGZ3Vq48DLJSc5yXearKOYz/inw==","signatures":[{"sig":"MEYCIQCXa0eicKFMlQRhKBJosWTcIPFu/dT3P1AYY8B1DFmAkAIhAKpcsB9UPjlMzaLewNivgKJO7vLi97rc8pzVjjUR6+Af","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26833,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfx6rFCRA9TVsSAnZWagAAFlsQAJBCFNQNj0Ne9afWffNv\nQvh56x7OeVAAORUHKBT41JKqDBTAuIP952oatPrcSg4/zzaSlVQeZMFgynR4\nnoMYiPLD1i6hYf/ZmVDZFGZ4V6fjHYlgvrzMb8hn8FbQsQXs58Cquzme+H2J\nQRRGtoIM2y1mNnCwlW1O87wnIfElRuy2l+OehycrGsbX1J9zA1am0AufyHnw\n3Ghl+jg5SBrqt5Ksp335nSYbV6dOnwzSWqvahFge3vvyrQPMWLutkej0zTSY\n39YPPAD6KFBkt+nzwOgG8ENFUQCws1gFcgbOUjzKDk2dv2pXhSf/Wf2NsYdm\nhZP75YQGp+plix4s09wJIYsKqE9coksD09+pDcm3vLTizTi04pEWA5qpMaDG\noK4NajVMMwrKDn3GV4yjnE5lnR0u9cGzAhNpMsw2biV5vR8pGfX4+1iZy6Np\nlxLWkk+dqy/idX9S8FnERiro3Ph1+Gm5MbdNqD4942d5hw+dXmZv05/GEGzI\nM2THXoERlPGjdsuYkNpVjiYaj4xsRZ+nfEVmooiX1xnZX8pc0u0XkwAXrFdV\nweyXy2qXS9RBSEQL3GR4MzfZxbUWm0EkYhx0hCE1V4IwdHxNo883pHh/hPm/\n7bsv+Ytz2dMyMOU/f/avRJPXtlTCcyCk1GdsMiWTtKJVqbXlANfCULnYxgqG\nfOXl\r\n=nLA1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"9b159391d776396512b01ec250fa76941713c763","_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"repository":{"url":"git+https://github.com/ampproject/amp-toolbox.git","type":"git","directory":"packages/runtime-fetch"},"_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (darwin)","description":"Download the AMP runtime","directories":{},"_nodeVersion":"12.18.3","dependencies":{"fs-extra":"9.0.1","cross-fetch":"3.0.6","at-least-node":"1.0.0","@ampproject/toolbox-core":"^2.7.1","@ampproject/toolbox-cache-list":"^2.7.1","@ampproject/toolbox-runtime-version":"^2.7.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/toolbox-runtime-fetch_2.7.1_1606920901308_0.25228514048310036","host":"s3://npm-registry-packages"}},"2.7.2":{"name":"@ampproject/toolbox-runtime-fetch","version":"2.7.2","keywords":["amp","download","runtime"],"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","_id":"@ampproject/toolbox-runtime-fetch@2.7.2","maintainers":[{"name":"ampproject-admin","email":"admin@ampproject.org"},{"name":"kristoferbaxter","email":"kbax@me.com"},{"name":"jridgewell","email":"justin+npm@ridgewell.name"},{"name":"choumx","email":"willchou@google.com"},{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},{"name":"fstanis","email":"filip@stanis.me"},{"name":"erwinmombay","email":"erwin.mombay@gmail.com"},{"name":"samouri","email":"jzfisgreat@gmail.com"},{"name":"caroqliu","email":"carolineliu@google.com"},{"name":"rsimha","email":"rsimha@amp.dev"},{"name":"dvoytenko","email":"dvoytenko@gmail.com"},{"name":"patrickkettner","email":"patrickkettner@gmail.com"},{"name":"alanorozco","email":"orozcoalan@gmail.com"}],"homepage":"https://github.com/ampproject/amp-toolbox/tree/main/packages/runtime-fetch","bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"dist":{"shasum":"eb27112455dd0d89c0036cec4d227aada6bfdbb3","tarball":"https://registry.npmjs.org/@ampproject/toolbox-runtime-fetch/-/toolbox-runtime-fetch-2.7.2.tgz","fileCount":5,"integrity":"sha512-RFeHeCYftnBLiI8XoJt7CtXIIDnl8G0UJnUe4pZWjFTBbfpSBTzhpebg3bMZc+t+l7xH+ujfXX2tihQmaTljJw==","signatures":[{"sig":"MEYCIQDBIaoE0G0wtOrUhLB5EwtlV9Scq3Ph8gtIiWTqx/E3TAIhAIWzUlpS095p1NhzhasuRo/KUKkzZrqbNDyxbNNAoFk1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26829,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf2ROgCRA9TVsSAnZWagAAS98QAKFpOjV58ChnAy/Cz+tO\nY6VoGnhI/VyKxt98pTFrNUjLCI45rBbiOIUii68fm9XJQJuN68V1X46shDX1\nj4ifmi6p+bDsILBagrDJT3eqTa/4xzCD8dFjfe5ggvYBmNcP8XPB1UT6//fT\nLvqrBwlKPOyou++c5+d4TI20PF5kCVAAtfbipF3h2I2eSLfQYyu5wRGtkyU8\n444A4A3wh28wZB9DclWEzGQ+u0E1vbgElFxMdZcynIFbMgdWa0+hjgRfzDqZ\ntLiQlfOJF70G5o44je4qgl/LhMxj/UxAyoGiDK8euhwbbDMTKg2Xt3VYOt/5\n9LkGMLClgau8S+4IS8wvsqsA6FqKzM77TkTjg6AK22d5dwe8xVEz/kooW7/R\nJJ3/CCkHIhEqPwXiLOjBiPGfyTXK4o43hEKRxmt5EgHKw7nJDYxdHBqb+FHH\nyirUk7EMUGkq8TQH5EoIhK3egEb/t2as2+NB/S+2+D7vfc5nE+pgOXujDFJa\n1ufz+tpMtFjnh+xA3AlBNXkBkaKJ8WrgX7azpyHu4IV6dfK1ZLGBYOs2cQjY\n/fDGCBhyONfsLQwEyktalOAdo6ViAhMUi2ElqqIK7FdHeCdUlr5gIpbMnajA\nU9Q0+wrGAMBGVxDO71sfRDVlp/AT3IhlOsrIH8HXld17xMVj2cv6ySdNisAf\nTs8O\r\n=znap\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"83d1d4290d9da2683596506cff266c68e618fa81","_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"repository":{"url":"git+https://github.com/ampproject/amp-toolbox.git","type":"git","directory":"packages/runtime-fetch"},"_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (darwin)","description":"Download the AMP runtime","directories":{},"_nodeVersion":"12.18.3","dependencies":{"fs-extra":"9.0.1","node-fetch":"2.6.1","at-least-node":"1.0.0","@ampproject/toolbox-core":"^2.7.2","@ampproject/toolbox-cache-list":"^2.7.2","@ampproject/toolbox-runtime-version":"^2.7.2"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/toolbox-runtime-fetch_2.7.2_1608061856220_0.21973194690047904","host":"s3://npm-registry-packages"}},"2.7.4":{"name":"@ampproject/toolbox-runtime-fetch","version":"2.7.4","keywords":["amp","download","runtime"],"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","_id":"@ampproject/toolbox-runtime-fetch@2.7.4","maintainers":[{"name":"ampproject-admin","email":"admin@ampproject.org"},{"name":"kristoferbaxter","email":"kbax@me.com"},{"name":"jridgewell","email":"justin+npm@ridgewell.name"},{"name":"choumx","email":"willchou@google.com"},{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},{"name":"fstanis","email":"filip@stanis.me"},{"name":"erwinmombay","email":"erwin.mombay@gmail.com"},{"name":"samouri","email":"jzfisgreat@gmail.com"},{"name":"caroqliu","email":"carolineliu@google.com"},{"name":"rsimha","email":"rsimha@amp.dev"},{"name":"dvoytenko","email":"dvoytenko@gmail.com"},{"name":"patrickkettner","email":"patrickkettner@gmail.com"},{"name":"alanorozco","email":"orozcoalan@gmail.com"}],"homepage":"https://github.com/ampproject/amp-toolbox/tree/main/packages/runtime-fetch","bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"dist":{"shasum":"24ed1b80c81891b61674bf613d3a15a6c129d57b","tarball":"https://registry.npmjs.org/@ampproject/toolbox-runtime-fetch/-/toolbox-runtime-fetch-2.7.4.tgz","fileCount":5,"integrity":"sha512-yf7HcYEpQ0gJ2pjZgc2vl4pHEioW7mHdMPf3UBOylweU5fj8FaVXpSv48O5cCLwjXPJICHKm5+JeZS05Q/seAw==","signatures":[{"sig":"MEUCIG37I7KH7w3LXs+K9TZN5I8Rsrk7kGMRYP11QONBxk0YAiEAxMdgLuOQaKj4WuKXLmFbsaB56vzxC4QMq/amPridvVc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26826,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4y8VCRA9TVsSAnZWagAAUX4P/0+N5Whh6nnxHGl9Bm/t\nyMxoxXQu6qIdlSffUjMPIT8Pj4KhQJaEjfZy6FSnVNVnuX+9q1SH02CL5NkQ\n3Ye4DqdbCTXrASeZGbow0jW8zRJ2fcqWuyAllRFj0ubaYqLhLGMerxo/rkvL\n8RnwLtSPWjipadbtMJBWMkePzp0urENPu4ruGikOO/7vikoShLrkiJ0/XvgG\nILQVcyI9VRX83NKkFXkdTH9AI7or4x9zr8xjZhMBDLPG/nHA/lCLUnNDDJes\n1LRpXKT3jvaGjVcsTkknlkRZve47Dqb/vEZefvAmWYdnE6g3QZCPK8qkbxhV\ngsFmHrr1iNAq1heMpm96iff574CzSEpiG56BfnEBeSyxfVzmMshK0tiarpda\nKJRwR2mTZiIbsTvgJKT+bvYV14KruY1IE7rnHyLli3zjufT9CwvzLvG57eUl\nNLpIbhFPBfxzFAZwmxN20IMt//ZzA175uVg3ostxCecg3zDDlUbhbA1F2Gw8\njbnVP1v4j/XT8QFDamew6PAKxBiXw4U3bSkM4/XEaBccPaQ0sXveYG3Oiy3c\no1L8fcD9QMAv1Y/I+0wIYHJWzuFeD/A9lSGRRfvBvKz0VYgLZwArfOuZDUxg\n5xXaQZjMg+r5B1GOJFT/jDpySCAWDeES8Gzt+M6ylVnPZzb8DVDXS/kjJUiY\nYAAM\r\n=XeD4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"881ffbde5be5e78e039b132f0daae3a3598ae248","_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"repository":{"url":"git+https://github.com/ampproject/amp-toolbox.git","type":"git","directory":"packages/runtime-fetch"},"_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (darwin)","description":"Download the AMP runtime","directories":{},"_nodeVersion":"12.18.3","dependencies":{"fs-extra":"9.0.1","node-fetch":"2.6.1","at-least-node":"1.0.0","@ampproject/toolbox-core":"2.7.4","@ampproject/toolbox-cache-list":"2.7.4","@ampproject/toolbox-runtime-version":"2.7.4"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/toolbox-runtime-fetch_2.7.4_1608724245611_0.6456971314123723","host":"s3://npm-registry-packages"}},"2.7.6":{"name":"@ampproject/toolbox-runtime-fetch","version":"2.7.6","keywords":["amp","download","runtime"],"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","_id":"@ampproject/toolbox-runtime-fetch@2.7.6","maintainers":[{"name":"ampproject-admin","email":"admin@ampproject.org"},{"name":"kristoferbaxter","email":"kbax@me.com"},{"name":"jridgewell","email":"justin+npm@ridgewell.name"},{"name":"choumx","email":"willchou@google.com"},{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},{"name":"fstanis","email":"filip@stanis.me"},{"name":"erwinmombay","email":"erwin.mombay@gmail.com"},{"name":"samouri","email":"jzfisgreat@gmail.com"},{"name":"caroqliu","email":"carolineliu@google.com"},{"name":"rsimha","email":"rsimha@amp.dev"},{"name":"dvoytenko","email":"dvoytenko@gmail.com"},{"name":"patrickkettner","email":"patrickkettner@gmail.com"},{"name":"alanorozco","email":"orozcoalan@gmail.com"}],"homepage":"https://github.com/ampproject/amp-toolbox/tree/main/packages/runtime-fetch","bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"dist":{"shasum":"3bfab14a7e37a8f2158ebaf4ea73997c55b7c8fa","tarball":"https://registry.npmjs.org/@ampproject/toolbox-runtime-fetch/-/toolbox-runtime-fetch-2.7.6.tgz","fileCount":5,"integrity":"sha512-PpJ4A+nVTNBDbpRSkbKD4h9MV2GM2Kam55RU4wyLh6Hhh+MG62HfCU3mVy6to4e0dr19x5Yi4En8IDSi3PGxnA==","signatures":[{"sig":"MEQCIHNIKM40b90FYkKJRWNsN0qMAmLVMG9ilWh9mChx4k2GAiBxbo71IT6XWOq+CNejg6JcMxBwLbQ4GVgDNAIQLR3zzA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26826,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgF/tNCRA9TVsSAnZWagAADEEP/2eDMK5no9W1i3/ZAnDz\nAz3aXa8dQzVg5Xba9SU2AfeuDp3p+A9HcjABc9svH/W2+C4NX9rV7uFaVieB\nofCjSaGyMqDHlrslqCUXNnv9qqH4wgZ9chAsfSeKSnxOp6Gxhymy0t5hZ6L+\nTih4q2D/jcG87ZEuNppVzPxOa56NoTnCHS4wauUeh3rXOMVbNSWeI/U3s2Ls\nULKCfZeUsfT2DNV8ZfoE7wKnm9GpLOP/3lcUQk4N5z9/lbId+e8XT8MOMBKV\n6GvvDzQRSR3xbMepqSUri4IFbi20VeG3roNX0odk+Sprvufa1ROwfi8v4A32\nAR6CPSYVm3ZGFIccwoLX6MQCR+BTEwxsg98CWQ4bqVjKEr8JbbeS9HnT70po\na6wIE1SA1LLc9+cx4pZl/Wxmj1JO164iyFj8Pj9UFHZoZN00jH+knVsdRJf8\ngkcC0zZyHUKVrEAOVVJ3QXbJ0UifoLGFxzJB/gaOVqVYkDxn/oje+TNz7Io0\n93kPk2oEhJaL2hYwdWBXUdlrwvbIZ9jntvvUdVYQGdeA9N/5gZHt/cXY6b8P\nxjbC48ciLDsjbQxsj4rIGkQrEDU5GMABO8dh26uySjp+Kl4cOel6kZELO6Ls\nLhejgbT9f9vB8nDFuDQV1NFUZJxcNS75PX8Y3MZ952FUE1/q/G/rGwRj+WvA\nvxsP\r\n=ZSfk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"bc8367e395b11f7b9ceb03562bd15982415a771d","_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"repository":{"url":"git+https://github.com/ampproject/amp-toolbox.git","type":"git","directory":"packages/runtime-fetch"},"_npmVersion":"lerna/3.22.1/node@v14.15.4+x64 (darwin)","description":"Download the AMP runtime","directories":{},"_nodeVersion":"14.15.4","dependencies":{"fs-extra":"9.1.0","node-fetch":"2.6.1","at-least-node":"1.0.0","@ampproject/toolbox-core":"2.7.4","@ampproject/toolbox-cache-list":"2.7.4","@ampproject/toolbox-runtime-version":"2.7.4"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/toolbox-runtime-fetch_2.7.6_1612184396957_0.09174629540926649","host":"s3://npm-registry-packages"}},"2.8.0-canary.0":{"name":"@ampproject/toolbox-runtime-fetch","version":"2.8.0-canary.0","keywords":["amp","download","runtime"],"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","_id":"@ampproject/toolbox-runtime-fetch@2.8.0-canary.0","maintainers":[{"name":"ampproject-admin","email":"admin@ampproject.org"},{"name":"kristoferbaxter","email":"kbax@me.com"},{"name":"jridgewell","email":"justin+npm@ridgewell.name"},{"name":"choumx","email":"willchou@google.com"},{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},{"name":"fstanis","email":"filip@stanis.me"},{"name":"erwinmombay","email":"erwin.mombay@gmail.com"},{"name":"samouri","email":"jzfisgreat@gmail.com"},{"name":"caroqliu","email":"carolineliu@google.com"},{"name":"rsimha","email":"rsimha@amp.dev"},{"name":"dvoytenko","email":"dvoytenko@gmail.com"},{"name":"patrickkettner","email":"patrickkettner@gmail.com"},{"name":"alanorozco","email":"orozcoalan@gmail.com"}],"homepage":"https://github.com/ampproject/amp-toolbox/tree/main/packages/runtime-fetch","bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"dist":{"shasum":"a275c457fb5931c36922e0d0e33388d9904c678d","tarball":"https://registry.npmjs.org/@ampproject/toolbox-runtime-fetch/-/toolbox-runtime-fetch-2.8.0-canary.0.tgz","fileCount":5,"integrity":"sha512-cvW2Wa+rb3462jTa1HbV8oQHn/pgJ3QufNVnrHTR4gLPBBAcQYdworKu4qsCqeA8hAyKbnTOcEAAyMLtxvwv3g==","signatures":[{"sig":"MEYCIQDKOvL72rVGVtX8uVQZZLv57FykY/Uzdt68uoY7uQ1VjQIhAJbaCdcBpInx+T467kN3N0J6fkOrgMBcxDHdc4t8PQ5n","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26865,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJrniCRA9TVsSAnZWagAAsf8P/RVqR9TMmB9Xl/21k+rP\nbfw8EWl+8wRV4VoYPigAAOUUmA9VpQvcNnxjqSuNaZeiK/SONNXv2t0VKXfH\nfwLrKgI2TG6UJJr/1LjsLao8iKtb4kpLg4bPY9r6syBLVuUA+O4HtNNsZ4nr\nJGcjFl2+udqJTPeKFrQmoMABee/z3aN/P8ftHWRYw/+UONjgJ49lTPJgCATR\nc7RGDTOtPi0w1V0bFAZShR/5trRrz0EKRAX2NhvLMKI+Szk4aTzrcLVc/wcM\nCbAFmrDqJl0M5k8ISMSdkB87VVzkxyew7jP7GM61Hz8mCQ3dDNWJo5RnfF3T\nw9bs2SRYMBOk3Ee4HQMATTR449ZZZFXLKWEi9sdtfKpB/fu6+dAG6XE7rFE4\nMF220z2Rf4CBT/q89saUDf5OUWPgK0meh5NGm2GrELHwMAsxndjeajwLf2TS\nlfs/HqwNc+ouOKbAEvDs/ibsnca8sOIacRONVEhoGbObDJhAWc/JCEXsHu96\nlAdq62vDkqJyuhlbEKPyakM9xYUKmF7P/Y1Rq/XPYpvkhlomn3NUL4aQkPq6\niyhSw0jQ5IQlsTbSnyHzF7dogSi3COdjhpLz+nQwfWaEnCP9WjF61TaxUwsL\ns5YX1xh5IuH5Q1N61ADAWu2+rLcIgbzMajuQm4JpSdGUOrW1mG+7MsdP0vO9\nAWYN\r\n=etWg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# AMP Download Runtime\n\n[![npm version](https://badge.fury.io/js/%40ampproject%2Ftoolbox-runtime-fetch.svg)](https://badge.fury.io/js/%40ampproject%2Ftoolbox-runtime-fetch)\n\nThe AMP Download Runtime tool fetches a complete, compiled AMP runtime and saves it to disk. You can use this tool to fetch [AMP Project releases](https://github.com/ampproject/amphtml/releases) from `cdn.ampproject.org` or direct it to download an AMP runtime hosted elsewhere.\n\nSpecial handling is included for amp-geo. For hosting environments that [dynamically modify `amp-geo.js`](https://github.com/ampproject/amphtml/blob/main/spec/amp-cache-guidelines.md#guidelines-adding-a-new-cache-to-the-amp-ecosystem) when served, this tool restores the content to its unpatched state.\n\n## Installation\n\nInstall via:\n\n```sh\nnpm install @ampproject/toolbox-runtime-fetch --save\n```\n\n## Options\n\n- `dest` (required `string`): Specify the destination directory where the AMP runtime should be saved. The runtime will be downloaded to an RTV-specific path under `dest`.\n- `clear` (optional `boolean`): Remove all contents from the destination directory before saving the AMP runtime. Defaults to `true`.\n- `rtv` (optional `string`): Specify the runtime version to download. Defaults to the latest production version available.\n- `ampUrlPrefix` (optional `string`): Specify the URL where the AMP runtime is hosted. Defaults to `https://cdn.ampproject.org`.\n\nNote: When downloading [AMP Project releases](https://github.com/ampproject/amphtml/releases), the runtime version (`rtv`) is obtained by prepending `01` (production) or `00` (canary) to the version. For example, the `rtv` for production release `2003101714470` is `012003101714470`.\n\n## Usage\n\nBasic usage:\n\n```js\nconst downloadRuntime = require('@ampproject/toolbox-runtime-fetch');\n\nlet result;\n\n// Download the latest AMP Project release to /tmp/amp/rtv/<rtv>,\n// where <rtv> is detected automatically\nresult = await downloadRuntime.getRuntime({\n  dest: '/tmp/amp' // Windows filesystem paths are also supported\n});\n\n// Download a specific version of the AMP runtime from Bing\nresult = await downloadRuntime.getRuntime({\n  dest: '/tmp/amp' // Windows filesystem paths are also supported\n  rtv: '011912201827130',\n  ampPrefixUrl: 'https://www.bing-amp.com'\n});\n\n/**\n * The object returned from getRuntime() includes the success or failure status,\n * as well as data about the AMP runtime that was downloaded:\n * {\n *   status: {boolean} Overall AMP runtime download status\n *   error: {string} Error message on failure\n *   count: {number} Number of files in the AMP runtime\n *   url: {string} URL to AMP runtime\n *   dest: {string} Path to directory where AMP runtime was downloaded\n *   rtv: {string} Runtime version of AMP runtime\n * }\n */\n```\n","gitHead":"0ec5cb5ca31022687841bc344b29fa8e775310d8","_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"repository":{"url":"git+https://github.com/ampproject/amp-toolbox.git","type":"git","directory":"packages/runtime-fetch"},"_npmVersion":"lerna/3.22.1/node@v14.15.4+x64 (darwin)","description":"Download the AMP runtime","directories":{},"_nodeVersion":"14.15.4","dependencies":{"fs-extra":"9.1.0","node-fetch":"2.6.1","at-least-node":"1.0.0","@ampproject/toolbox-core":"^2.8.0-canary.0","@ampproject/toolbox-cache-list":"^2.8.0-canary.0","@ampproject/toolbox-runtime-version":"^2.8.0-canary.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/toolbox-runtime-fetch_2.8.0-canary.0_1613150690113_0.34578015823876185","host":"s3://npm-registry-packages"}},"2.8.0-canary.9":{"name":"@ampproject/toolbox-runtime-fetch","version":"2.8.0-canary.9","keywords":["amp","download","runtime"],"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","_id":"@ampproject/toolbox-runtime-fetch@2.8.0-canary.9","maintainers":[{"name":"ampproject-admin","email":"admin@ampproject.org"},{"name":"kristoferbaxter","email":"kbax@me.com"},{"name":"jridgewell","email":"justin+npm@ridgewell.name"},{"name":"choumx","email":"willchou@google.com"},{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},{"name":"fstanis","email":"filip@stanis.me"},{"name":"erwinmombay","email":"erwin.mombay@gmail.com"},{"name":"samouri","email":"jzfisgreat@gmail.com"},{"name":"caroqliu","email":"carolineliu@google.com"},{"name":"rsimha","email":"rsimha@amp.dev"},{"name":"dvoytenko","email":"dvoytenko@gmail.com"},{"name":"patrickkettner","email":"patrickkettner@gmail.com"},{"name":"alanorozco","email":"orozcoalan@gmail.com"}],"homepage":"https://github.com/ampproject/amp-toolbox/tree/main/packages/runtime-fetch","bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"dist":{"shasum":"7d6bf95cf47f414d2be1f19abb5843f9417f38ef","tarball":"https://registry.npmjs.org/@ampproject/toolbox-runtime-fetch/-/toolbox-runtime-fetch-2.8.0-canary.9.tgz","fileCount":5,"integrity":"sha512-g1zb6lrpZylO7+QdkjRiztFLbl2nVTDLUAHj9tLINlpZ6QD1VnWWfMk3ZImFaac3BlLptDzjlLTctCxQKlPazw==","signatures":[{"sig":"MEYCIQCFWxVQlWHwgyiS1E3C+rKDJ0byM25h9HcFnAit2cu77AIhAPWI77w2ZG3sScLPviT8od5LOuvAnAak4IEyQrRwIZzn","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26865,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWLFdCRA9TVsSAnZWagAAe5gP/1uz1/MhBdvt5hmL6jhq\nQJhHBlUhT+/b9hD662BU2wXQzBAu3jRp5rL8xTUSpDLx+WTOAWxBiB+xu1f0\numu6bwe776sTDqoTsJo+u37MDHl6S2G4XBXKDAtoUhegwI6eFPyJMNIjpxzG\nUsElR5FIMl7vPpa2UAt2SnxY+bYQWvvj9RG4uuAeEgvU/6b/wwohM/rtXYol\nKGpXcorEkYGZ8adfSprluNE77QXUhaiA+nXrMDjRd3P3Dm/XuOsWjl3KkN+E\n9q683IP3RYYRI2y/YUJYdXK6mKGkGSZl6QlO+oQhMorqaZpBll149Pg7iIec\ngA+hheybbNae8YgZyC9hGR6ONgGgZMtQhZnEQWpX3bijyoswoyZ0GNQT1Dpj\nrpKOWkaX6fdBDincr0I3L/Xg/fM25+cEH6DyNfBwUr8HBN2Mn14/7Xm8JEVu\ny5mRTSjEwaIhWLJ04w+ySFp3sWhS3nVzo/UV3K2lmZbZUfmwhydoP9m5svw9\nyU5dhgIp5V9AtY6l7aHnhrkyZFLEA5KwoyhUvGvIbbWy76aVGbDIohh6q5Rl\n6WFZ9tGVu0y4PnRqzFu69gjKTV9H3vXZAtTZorkH8Izqq803olhp8o/uoEjp\noiUH1NJZzXDYq02WSmdsZeyGDsLOb11vWtRbU0rGZF/8elbVtBdEzDeAi6vP\nw4oq\r\n=/Jaj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# AMP Download Runtime\n\n[![npm version](https://badge.fury.io/js/%40ampproject%2Ftoolbox-runtime-fetch.svg)](https://badge.fury.io/js/%40ampproject%2Ftoolbox-runtime-fetch)\n\nThe AMP Download Runtime tool fetches a complete, compiled AMP runtime and saves it to disk. You can use this tool to fetch [AMP Project releases](https://github.com/ampproject/amphtml/releases) from `cdn.ampproject.org` or direct it to download an AMP runtime hosted elsewhere.\n\nSpecial handling is included for amp-geo. For hosting environments that [dynamically modify `amp-geo.js`](https://github.com/ampproject/amphtml/blob/main/spec/amp-cache-guidelines.md#guidelines-adding-a-new-cache-to-the-amp-ecosystem) when served, this tool restores the content to its unpatched state.\n\n## Installation\n\nInstall via:\n\n```sh\nnpm install @ampproject/toolbox-runtime-fetch --save\n```\n\n## Options\n\n- `dest` (required `string`): Specify the destination directory where the AMP runtime should be saved. The runtime will be downloaded to an RTV-specific path under `dest`.\n- `clear` (optional `boolean`): Remove all contents from the destination directory before saving the AMP runtime. Defaults to `true`.\n- `rtv` (optional `string`): Specify the runtime version to download. Defaults to the latest production version available.\n- `ampUrlPrefix` (optional `string`): Specify the URL where the AMP runtime is hosted. Defaults to `https://cdn.ampproject.org`.\n\nNote: When downloading [AMP Project releases](https://github.com/ampproject/amphtml/releases), the runtime version (`rtv`) is obtained by prepending `01` (production) or `00` (canary) to the version. For example, the `rtv` for production release `2003101714470` is `012003101714470`.\n\n## Usage\n\nBasic usage:\n\n```js\nconst downloadRuntime = require('@ampproject/toolbox-runtime-fetch');\n\nlet result;\n\n// Download the latest AMP Project release to /tmp/amp/rtv/<rtv>,\n// where <rtv> is detected automatically\nresult = await downloadRuntime.getRuntime({\n  dest: '/tmp/amp' // Windows filesystem paths are also supported\n});\n\n// Download a specific version of the AMP runtime from Bing\nresult = await downloadRuntime.getRuntime({\n  dest: '/tmp/amp' // Windows filesystem paths are also supported\n  rtv: '011912201827130',\n  ampPrefixUrl: 'https://www.bing-amp.com'\n});\n\n/**\n * The object returned from getRuntime() includes the success or failure status,\n * as well as data about the AMP runtime that was downloaded:\n * {\n *   status: {boolean} Overall AMP runtime download status\n *   error: {string} Error message on failure\n *   count: {number} Number of files in the AMP runtime\n *   url: {string} URL to AMP runtime\n *   dest: {string} Path to directory where AMP runtime was downloaded\n *   rtv: {string} Runtime version of AMP runtime\n * }\n */\n```\n","gitHead":"0974deb66a4bf37062208de3f6dbeea1ba08fa36","_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"repository":{"url":"git+https://github.com/ampproject/amp-toolbox.git","type":"git","directory":"packages/runtime-fetch"},"_npmVersion":"lerna/4.0.0/node@v14.15.4+x64 (darwin)","description":"Download the AMP runtime","directories":{},"_nodeVersion":"14.15.4","dependencies":{"fs-extra":"9.1.0","node-fetch":"2.6.1","at-least-node":"1.0.0","@ampproject/toolbox-core":"^2.8.0-canary.9","@ampproject/toolbox-cache-list":"^2.8.0-canary.9","@ampproject/toolbox-runtime-version":"^2.8.0-canary.9"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/toolbox-runtime-fetch_2.8.0-canary.9_1616425309192_0.5616964976675867","host":"s3://npm-registry-packages"}},"2.8.0-canary.15":{"name":"@ampproject/toolbox-runtime-fetch","version":"2.8.0-canary.15","keywords":["amp","download","runtime"],"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","_id":"@ampproject/toolbox-runtime-fetch@2.8.0-canary.15","maintainers":[{"name":"ampproject-admin","email":"admin@ampproject.org"},{"name":"kristoferbaxter","email":"kbax@me.com"},{"name":"jridgewell","email":"justin+npm@ridgewell.name"},{"name":"choumx","email":"willchou@google.com"},{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},{"name":"fstanis","email":"filip@stanis.me"},{"name":"erwinmombay","email":"erwin.mombay@gmail.com"},{"name":"samouri","email":"jzfisgreat@gmail.com"},{"name":"caroqliu","email":"carolineliu@google.com"},{"name":"rsimha","email":"rsimha@amp.dev"},{"name":"dvoytenko","email":"dvoytenko@gmail.com"},{"name":"patrickkettner","email":"patrickkettner@gmail.com"},{"name":"alanorozco","email":"orozcoalan@gmail.com"}],"homepage":"https://github.com/ampproject/amp-toolbox/tree/main/packages/runtime-fetch","bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"dist":{"shasum":"26a658502aded50556fdc86d316492237aff2d6c","tarball":"https://registry.npmjs.org/@ampproject/toolbox-runtime-fetch/-/toolbox-runtime-fetch-2.8.0-canary.15.tgz","fileCount":5,"integrity":"sha512-dp4SuTZ8IngRHT7O62+Qvb4+xPjleCJthUijyiQcRAF5nbvelHPv3GMJdg6mFWidzEakdDIO/oh3DNN3I3YiMQ==","signatures":[{"sig":"MEYCIQDSlbxTmDkjv2WPromZRrwWeQRiGO4YYmSVT9tE7dorIwIhAKuWOs/SIktwLZZTReAZjzOPlSgtSHJUBm2qcP9L6AVP","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26869,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgY4uECRA9TVsSAnZWagAAebIP/RTgrQrzU93eM7e7wjFQ\njCxg97jN2A2B3ZrrI2/31m6PRUUGnv4B41HIyLSIWx/IDFhLV2i7k+YIksnd\nXNLOfe6OCk3rr4YEm9fK5j3MtO2qXyqwirpBoUkFV6w8wdeo9uULpHSMxahc\nW7JEVolsbUcgd35MVLbITJywhV9LmFG2IT+RuLuY0T77+cLHqdo3enTlT2D7\n9k8pqmoYioElXUi2GvA2hq+zovPfpxnl6Ech5amq7RK0lAw7BUXSvDGwR4Gs\nShmPiLAMDCqMuK4gjwTMGPEkF0wjqTS9kpWitmmJun2+cIkK18BhnCdAdYLh\njgc/5vYQ3OA3GRuuB2uuqUll/EyKMebQr152Sf+rq4mUHLJlVGdzYzklaRS2\nu/aaNNC/9hvEJyp5lav6KzbcjsZLo7mPGezto7VPR3wR3yR269Y7+FlenUMl\nOq5cSNkNLgETbjYtJXEb5b0cVMoKA5hzxVPhHB+1WkeokVAIISm7U4xxBtYZ\nIsh8jnUazndwnEMix8G8omHdh0BLXkoQZp0RuUZUHEMsfBwdejOuzxwpUHff\n5VScgJ2htohAzudK0yHuOnfs+ody2b+tK0GNkROX/s4zpLY2U+F74j2vcpZW\nmILK3wzqXJ0uKpZSRCTCx34MikDDBFVgHbIFrUWzzjdnEDRRaIC9GcZhGgSD\n8ioK\r\n=YN7+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# AMP Download Runtime\n\n[![npm version](https://badge.fury.io/js/%40ampproject%2Ftoolbox-runtime-fetch.svg)](https://badge.fury.io/js/%40ampproject%2Ftoolbox-runtime-fetch)\n\nThe AMP Download Runtime tool fetches a complete, compiled AMP runtime and saves it to disk. You can use this tool to fetch [AMP Project releases](https://github.com/ampproject/amphtml/releases) from `cdn.ampproject.org` or direct it to download an AMP runtime hosted elsewhere.\n\nSpecial handling is included for amp-geo. For hosting environments that [dynamically modify `amp-geo.js`](https://github.com/ampproject/amphtml/blob/main/spec/amp-cache-guidelines.md#guidelines-adding-a-new-cache-to-the-amp-ecosystem) when served, this tool restores the content to its unpatched state.\n\n## Installation\n\nInstall via:\n\n```sh\nnpm install @ampproject/toolbox-runtime-fetch --save\n```\n\n## Options\n\n- `dest` (required `string`): Specify the destination directory where the AMP runtime should be saved. The runtime will be downloaded to an RTV-specific path under `dest`.\n- `clear` (optional `boolean`): Remove all contents from the destination directory before saving the AMP runtime. Defaults to `true`.\n- `rtv` (optional `string`): Specify the runtime version to download. Defaults to the latest production version available.\n- `ampUrlPrefix` (optional `string`): Specify the URL where the AMP runtime is hosted. Defaults to `https://cdn.ampproject.org`.\n\nNote: When downloading [AMP Project releases](https://github.com/ampproject/amphtml/releases), the runtime version (`rtv`) is obtained by prepending `01` (production) or `00` (canary) to the version. For example, the `rtv` for production release `2003101714470` is `012003101714470`.\n\n## Usage\n\nBasic usage:\n\n```js\nconst downloadRuntime = require('@ampproject/toolbox-runtime-fetch');\n\nlet result;\n\n// Download the latest AMP Project release to /tmp/amp/rtv/<rtv>,\n// where <rtv> is detected automatically\nresult = await downloadRuntime.getRuntime({\n  dest: '/tmp/amp' // Windows filesystem paths are also supported\n});\n\n// Download a specific version of the AMP runtime from Bing\nresult = await downloadRuntime.getRuntime({\n  dest: '/tmp/amp' // Windows filesystem paths are also supported\n  rtv: '011912201827130',\n  ampPrefixUrl: 'https://www.bing-amp.com'\n});\n\n/**\n * The object returned from getRuntime() includes the success or failure status,\n * as well as data about the AMP runtime that was downloaded:\n * {\n *   status: {boolean} Overall AMP runtime download status\n *   error: {string} Error message on failure\n *   count: {number} Number of files in the AMP runtime\n *   url: {string} URL to AMP runtime\n *   dest: {string} Path to directory where AMP runtime was downloaded\n *   rtv: {string} Runtime version of AMP runtime\n * }\n */\n```\n","gitHead":"082fd3256f3664fb016b47d2d1b965d47ebb3f53","_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"repository":{"url":"git+https://github.com/ampproject/amp-toolbox.git","type":"git","directory":"packages/runtime-fetch"},"_npmVersion":"lerna/4.0.0/node@v14.15.4+x64 (darwin)","description":"Download the AMP runtime","directories":{},"_nodeVersion":"14.15.4","dependencies":{"fs-extra":"9.1.0","node-fetch":"2.6.1","at-least-node":"1.0.0","@ampproject/toolbox-core":"^2.8.0-canary.15","@ampproject/toolbox-cache-list":"^2.8.0-canary.15","@ampproject/toolbox-runtime-version":"^2.8.0-canary.15"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/toolbox-runtime-fetch_2.8.0-canary.15_1617136516073_0.9313280983545187","host":"s3://npm-registry-packages"}},"2.8.0":{"name":"@ampproject/toolbox-runtime-fetch","version":"2.8.0","keywords":["amp","download","runtime"],"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","_id":"@ampproject/toolbox-runtime-fetch@2.8.0","maintainers":[{"name":"esth","email":"esther@amp.dev"},{"name":"ampprojectbot","email":"bot@amp.dev"},{"name":"kdwan","email":"kdwan@google.com"},{"name":"ampproject-admin","email":"admin@ampproject.org"},{"name":"kristoferbaxter","email":"kbax@me.com"},{"name":"jridgewell","email":"justin+npm@ridgewell.name"},{"name":"choumx","email":"willchou@google.com"},{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},{"name":"fstanis","email":"filip@stanis.me"},{"name":"erwinmombay","email":"erwin.mombay@gmail.com"},{"name":"samouri","email":"jzfisgreat@gmail.com"},{"name":"caroqliu","email":"carolineliu@google.com"},{"name":"rsimha","email":"rsimha@amp.dev"},{"name":"dvoytenko","email":"dvoytenko@gmail.com"},{"name":"patrickkettner","email":"patrickkettner@gmail.com"},{"name":"alanorozco","email":"orozcoalan@gmail.com"}],"homepage":"https://github.com/ampproject/amp-toolbox/tree/main/packages/runtime-fetch","bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"dist":{"shasum":"4bdc9dfc3317e4f6f0a4ac93aba7d9731e8844f1","tarball":"https://registry.npmjs.org/@ampproject/toolbox-runtime-fetch/-/toolbox-runtime-fetch-2.8.0.tgz","fileCount":5,"integrity":"sha512-9Ggt0hKlswa5C0LF+aMh2yPQPeXdOQTuDz20USPFCgLRT5Rnm5HGVeUOF9ZW9gIIRuYqxhHeN288evf2o4gEAQ==","signatures":[{"sig":"MEUCIQDpetjYAMiBXkGbmiR9tfAmkJetTMiqbf5puedynntnhAIgEPhEuvriz0iQr49Bp7IEWpYnYJ6gwoE41N/UzVJjsyk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26829,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgtPRJCRA9TVsSAnZWagAArzwP/iuhL/SDbiHXe+7k8dUW\nTQ0dhp5sCdB3uWimjVPw3+ya8XwRqP0qVKu+wYiYPKUS7UX9APlAaetlVazQ\n4AePJboWXgUVlpTK0dmFseLitzeqV8orC56LLPFzvvK3bgv/gkBWGonvFogH\npfcYGq+0pRUEvrMiY4yIb1m9uLlKUl3RsWVmUtmS05sy45HjumXe/I8kKEOp\npg6hAtroS5N0f82kf5C9uCvpndwqU4KAaI8tYInkB3GEJdbMiwjPHZJxxpPI\nuy+hhMWdAJStNdeBunzZFl8YirZRhElxLJT7UWeNK3J4DDnl82KX0hRmfPlK\np+2XkJwC1s+ZMPstx+PwwabBRk5s4HRLnV2Uxbv0H7lRsVhkJ+pdw0pkYmoB\nNBPFnDVERu7KwIElj2qgcBmNTUNq5VcQkV9f8i8PsGBLoC7dqYRXIaK2vv29\nYpFLuekVkwAxrPITxJ2GR11x5DAd/3gZUE/KucbQuUP2NWD9/289sc6NHhC2\n6WRL60c/MGcZrZE6gpcjwdLFCvsyJ+a88QHgtRjppr24ABFCd9zmAK/DXey+\nb4vAJ2dSMKcaXft9qJ9mjMqneXWUWRVS4ZfgOURPOBOH3niBxvAWjbjvRXkx\n0EI2LQZvb0YGp2DFyUDmlblMmQgBvzooHq7Oq8rPh9uK3CK/QhZCZ/j2/aJP\nn4Kf\r\n=DeFQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"6103eb57765445355421826791361ac9ed9cf4d8","_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"repository":{"url":"git+https://github.com/ampproject/amp-toolbox.git","type":"git","directory":"packages/runtime-fetch"},"_npmVersion":"lerna/4.0.0/node@v14.15.4+x64 (darwin)","description":"Download the AMP runtime","directories":{},"_nodeVersion":"14.15.4","dependencies":{"fs-extra":"9.1.0","node-fetch":"2.6.1","at-least-node":"1.0.0","@ampproject/toolbox-core":"^2.8.0","@ampproject/toolbox-cache-list":"^2.8.0","@ampproject/toolbox-runtime-version":"^2.8.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/toolbox-runtime-fetch_2.8.0_1622471752699_0.9362498018649617","host":"s3://npm-registry-packages"}},"3.0.0-canary.2":{"name":"@ampproject/toolbox-runtime-fetch","version":"3.0.0-canary.2","keywords":["amp","download","runtime"],"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","_id":"@ampproject/toolbox-runtime-fetch@3.0.0-canary.2","maintainers":[{"name":"ampproject-admin","email":"admin@ampproject.org"},{"name":"kristoferbaxter","email":"kbax@me.com"},{"name":"jridgewell","email":"justin+npm@ridgewell.name"},{"name":"choumx","email":"willchou@google.com"},{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},{"name":"fstanis","email":"filip@stanis.me"},{"name":"erwinmombay","email":"erwin.mombay@gmail.com"},{"name":"samouri","email":"jzfisgreat@gmail.com"},{"name":"caroqliu","email":"carolineliu@google.com"},{"name":"rsimha","email":"rsimha@amp.dev"},{"name":"dvoytenko","email":"dvoytenko@gmail.com"},{"name":"patrickkettner","email":"patrickkettner@gmail.com"},{"name":"alanorozco","email":"orozcoalan@gmail.com"},{"name":"kdwan","email":"kdwan@google.com"},{"name":"ampprojectbot","email":"bot@amp.dev"},{"name":"esth","email":"esther@amp.dev"}],"homepage":"https://github.com/ampproject/amp-toolbox/tree/main/packages/runtime-fetch","bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"dist":{"shasum":"99e51992d9740bfc7b16645cae5aa1fbfcdf1192","tarball":"https://registry.npmjs.org/@ampproject/toolbox-runtime-fetch/-/toolbox-runtime-fetch-3.0.0-canary.2.tgz","fileCount":5,"integrity":"sha512-uukRnPrNHkGadLccS+tYiF1IwbyL7+2UxaQurR4LWr7CbY4wPLutyjpdu8dXCZl8lVsYdF6rZgWKUexEYZXsdQ==","signatures":[{"sig":"MEUCIQCrDkukE8E9eeAkpF76JQfLEF6zUPa7PpenfeyRYlod/wIgSNqpoxtUMEkvdy3ZVuVwsL0GkFJilYEQ7DIBYdim9Xc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26863,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3eqdCRA9TVsSAnZWagAA24QP/jJ6QUv9kT6wN35O0pva\n8PhpNZXE7nqaThKRR0GJvT16FVIBJTZBMCpvm+ta4Et9pB0he85Sa9As/Chj\nVNgz9geavdO+vxq/T0nZad/w+hlPJmL4B3jfZRThgqcu1KNvp6z9BK6I7L+x\njPBX7Z7OQd7vr6QvdfOg7uDi0clUrTcNmeFoP+D7ucTZ2o1Jly7AS17yLXdR\n17rZWvPPVtnj9vlUKh1j35XfBRMPEX8tlessnMZpFc0ZnkIbGBC10bH4T0mz\nnu2J4SzdWmUWhe4sviBTcevUMxlbpyJNd/nl//3Yh5/l0xFaaeSt4MQyv83K\n2LSwl1vWEaqOXgVMjkQ+Q9V7alPkSfpH4BRc441mnWS1l1H0YyU7s7zfVWR9\nZlZOpvVFghMVepibJRgI1MfE+ao1XYLA2+gfKga3Qf1yVkPagA/rcVUHB8AW\n+7AtMCLQ4BnHKtnBEzGjKjhdDyR2za2IRsazYFWHhfaBPPnK5ZpZn87CuRNb\ncoEjmN2O2P3hMtpdwDU3nlI3+G8rstCSe65gz37cTRVJY0uf1KGx2TztPin9\nZYIHYLZK6j6j4l0pm9k4uU4WNBCE+zaTQDALyHnuE6gg5wADLwwj37n5pHhq\nqYx05OZsHNlQz9zk89PZEFQLbWmxOoHLJh5HLz82KG7j5v442uzR5WN/nkdp\nhWRW\r\n=eRhc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# AMP Download Runtime\n\n[![npm version](https://badge.fury.io/js/%40ampproject%2Ftoolbox-runtime-fetch.svg)](https://badge.fury.io/js/%40ampproject%2Ftoolbox-runtime-fetch)\n\nThe AMP Download Runtime tool fetches a complete, compiled AMP runtime and saves it to disk. You can use this tool to fetch [AMP Project releases](https://github.com/ampproject/amphtml/releases) from `cdn.ampproject.org` or direct it to download an AMP runtime hosted elsewhere.\n\nSpecial handling is included for amp-geo. For hosting environments that [dynamically modify `amp-geo.js`](https://github.com/ampproject/amphtml/blob/main/spec/amp-cache-guidelines.md#guidelines-adding-a-new-cache-to-the-amp-ecosystem) when served, this tool restores the content to its unpatched state.\n\n## Installation\n\nInstall via:\n\n```sh\nnpm install @ampproject/toolbox-runtime-fetch --save\n```\n\n## Options\n\n- `dest` (required `string`): Specify the destination directory where the AMP runtime should be saved. The runtime will be downloaded to an RTV-specific path under `dest`.\n- `clear` (optional `boolean`): Remove all contents from the destination directory before saving the AMP runtime. Defaults to `true`.\n- `rtv` (optional `string`): Specify the runtime version to download. Defaults to the latest production version available.\n- `ampUrlPrefix` (optional `string`): Specify the URL where the AMP runtime is hosted. Defaults to `https://cdn.ampproject.org`.\n\nNote: When downloading [AMP Project releases](https://github.com/ampproject/amphtml/releases), the runtime version (`rtv`) is obtained by prepending `01` (production) or `00` (canary) to the version. For example, the `rtv` for production release `2003101714470` is `012003101714470`.\n\n## Usage\n\nBasic usage:\n\n```js\nconst downloadRuntime = require('@ampproject/toolbox-runtime-fetch');\n\nlet result;\n\n// Download the latest AMP Project release to /tmp/amp/rtv/<rtv>,\n// where <rtv> is detected automatically\nresult = await downloadRuntime.getRuntime({\n  dest: '/tmp/amp' // Windows filesystem paths are also supported\n});\n\n// Download a specific version of the AMP runtime from Bing\nresult = await downloadRuntime.getRuntime({\n  dest: '/tmp/amp' // Windows filesystem paths are also supported\n  rtv: '011912201827130',\n  ampPrefixUrl: 'https://www.bing-amp.com'\n});\n\n/**\n * The object returned from getRuntime() includes the success or failure status,\n * as well as data about the AMP runtime that was downloaded:\n * {\n *   status: {boolean} Overall AMP runtime download status\n *   error: {string} Error message on failure\n *   count: {number} Number of files in the AMP runtime\n *   url: {string} URL to AMP runtime\n *   dest: {string} Path to directory where AMP runtime was downloaded\n *   rtv: {string} Runtime version of AMP runtime\n * }\n */\n```\n","gitHead":"0f63a77e8081f0fb7d6b63280e2fd8701836c4f9","_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"repository":{"url":"git+https://github.com/ampproject/amp-toolbox.git","type":"git","directory":"packages/runtime-fetch"},"_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (darwin)","description":"Download the AMP runtime","directories":{},"_nodeVersion":"16.13.1","dependencies":{"fs-extra":"10.0.0","node-fetch":"2.6.1","at-least-node":"1.0.0","@ampproject/toolbox-core":"3.0.0-canary.2","@ampproject/toolbox-cache-list":"3.0.0-canary.2","@ampproject/toolbox-runtime-version":"3.0.0-canary.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/toolbox-runtime-fetch_3.0.0-canary.2_1641933469458_0.2664288085892961","host":"s3://npm-registry-packages"}},"2.9.0":{"name":"@ampproject/toolbox-runtime-fetch","version":"2.9.0","keywords":["amp","download","runtime"],"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","_id":"@ampproject/toolbox-runtime-fetch@2.9.0","maintainers":[{"name":"ampproject-admin","email":"admin@ampproject.org"},{"name":"kristoferbaxter","email":"kbax@me.com"},{"name":"jridgewell","email":"justin+npm@ridgewell.name"},{"name":"choumx","email":"willchou@google.com"},{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},{"name":"fstanis","email":"filip@stanis.me"},{"name":"erwinmombay","email":"erwin.mombay@gmail.com"},{"name":"samouri","email":"jzfisgreat@gmail.com"},{"name":"caroqliu","email":"carolineliu@google.com"},{"name":"rsimha","email":"rsimha@amp.dev"},{"name":"dvoytenko","email":"dvoytenko@gmail.com"},{"name":"patrickkettner","email":"patrickkettner@gmail.com"},{"name":"alanorozco","email":"orozcoalan@gmail.com"},{"name":"kdwan","email":"kdwan@google.com"},{"name":"ampprojectbot","email":"bot@amp.dev"},{"name":"esth","email":"esther@amp.dev"}],"homepage":"https://github.com/ampproject/amp-toolbox/tree/main/packages/runtime-fetch","bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"dist":{"shasum":"1b2197b490e0442f6ef043147c90d84813feebb2","tarball":"https://registry.npmjs.org/@ampproject/toolbox-runtime-fetch/-/toolbox-runtime-fetch-2.9.0.tgz","fileCount":5,"integrity":"sha512-M7p/orBRGSwlICMoZZ8WLNuAXxKRutQdNSR6wGnCRmzHDrV4CWKQDVOZZ93/XezhelurA5+ZQPRRfhPf857ymg==","signatures":[{"sig":"MEUCIDl/WKun3RLKQXwHZZO3z9Ay11EUQQvVWT802dSOd//yAiEAq6HF/xUuhblbeRPkhh3f3aqxL+v6T5pZZsQmOufidL0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26826,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJitNGjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoX5A/+MH0Z42gZ97Dg23jglEdJ1OepUfjG2Fx2w1EYRRmgWpxhNynt\r\n44jfnKFLvljBXLEsKgHlFPFxEakMRbwaGnIppmFZS2MmyvSC5IDbfqcQ8aRy\r\n/iShSovMptcve7q4RRELdLtXlQT3vRzMO47d4BwvUyDSR/rnWUCnPfUgmw/c\r\n5XJXl+Bw7gaaE22/aEqhAz7UEfUDBRTDPxgxKYjWzAITYBWFqqkD97gt8LPr\r\nIw9c5QN12EVofVsjpLVRPgDeogCI/xlwOlSHtCYzWMe1D1dWeDzDMdt/G04j\r\nDz8rvdO77NE3urxGImVuDAODZhRgBl3/koEdJbL9J4DH6txP9tVmjsGGuHUg\r\nFZE30g7VGPQl9zwbo6L7DBDYGuLf3dOQs5IOU30EEIsqL3/85CbI8tcrtbWe\r\nQERpy7Uq6sXutxDwFDWxSo/fYAgMug8Cp7TSALsJQZI66B0E2C9Oi1cSPwXe\r\nFi+KQVfka25yJJL2hRn4rzeenzW6dt7Wq9ioauTLwHK2YbP9RwhLNnS6CZcc\r\npG81NNM/MERMbajU4IWXuX887rcI2PZ3aP5aMqAa4ZcLzs8P1tgQui3x9gO7\r\nh3om0N3YflWuEH1LLqps7pa1g4x2LqEjP0W9taENYpfmfVlxGt4jH+oGu9MF\r\nub9zNZNg25EZf2jD95Na6+l6nZW5PNp3ei8=\r\n=4GKP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"0826825fd8c5f3abac821ebe87a318e70f33c9dd","_npmUser":{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},"repository":{"url":"git+https://github.com/ampproject/amp-toolbox.git","type":"git","directory":"packages/runtime-fetch"},"_npmVersion":"lerna/5.1.4/node@v18.2.0+arm64 (darwin)","description":"Download the AMP runtime","directories":{},"_nodeVersion":"18.2.0","dependencies":{"fs-extra":"9.1.0","node-fetch":"2.6.7","at-least-node":"1.0.0","@ampproject/toolbox-core":"2.9.0","@ampproject/toolbox-cache-list":"2.9.0","@ampproject/toolbox-runtime-version":"2.9.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/toolbox-runtime-fetch_2.9.0_1656017315564_0.42212833485045986","host":"s3://npm-registry-packages"}},"2.10.0":{"name":"@ampproject/toolbox-runtime-fetch","version":"2.10.0","keywords":["amp","download","runtime"],"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","_id":"@ampproject/toolbox-runtime-fetch@2.10.0","maintainers":[{"name":"ampproject-admin","email":"admin@ampproject.org"},{"name":"kristoferbaxter","email":"kbax@me.com"},{"name":"jridgewell","email":"justin+npm@ridgewell.name"},{"name":"choumx","email":"willchou@google.com"},{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},{"name":"fstanis","email":"filip@stanis.me"},{"name":"erwinmombay","email":"erwin.mombay@gmail.com"},{"name":"samouri","email":"jzfisgreat@gmail.com"},{"name":"caroqliu","email":"carolineliu@google.com"},{"name":"rsimha","email":"rsimha@amp.dev"},{"name":"dvoytenko","email":"dvoytenko@gmail.com"},{"name":"patrickkettner","email":"patrickkettner@gmail.com"},{"name":"alanorozco","email":"orozcoalan@gmail.com"},{"name":"kdwan","email":"kdwan@google.com"},{"name":"ampprojectbot","email":"bot@amp.dev"},{"name":"esth","email":"esther@amp.dev"}],"homepage":"https://github.com/ampproject/amp-toolbox/tree/main/packages/runtime-fetch","bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"dist":{"shasum":"ea64aa28ef6b0eaec8695bbd236b3edee83203c2","tarball":"https://registry.npmjs.org/@ampproject/toolbox-runtime-fetch/-/toolbox-runtime-fetch-2.10.0.tgz","fileCount":4,"integrity":"sha512-7xU4ex1vt/QMFrrI8U1QPxlnMiWf9tU4YgwqyyAoPzepVz+yJoMi7I3j7SBZGXho69N61fi7x5x7LwY64HsfgQ==","signatures":[{"sig":"MEYCIQD7OiDDxk9sbnnTRBN07fg0kOT0kIZVojjszyRKP6SwYQIhAJ1rJQbsXznpYbaf2a+eATqUsaeU+WAxHkZ2bx+s9+B8","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15487},"main":"index.js","gitHead":"6103eb57765445355421826791361ac9ed9cf4d8","_npmUser":{"name":"ampproject-admin","email":"admin@ampproject.org"},"repository":{"url":"git+https://github.com/ampproject/amp-toolbox.git","type":"git","directory":"packages/runtime-fetch"},"_npmVersion":"10.8.1","description":"Download the AMP runtime","directories":{},"_nodeVersion":"20.12.2","dependencies":{"fs-extra":"9.1.0","node-fetch":"2.6.7","at-least-node":"1.0.0","@ampproject/toolbox-core":"2.10.0","@ampproject/toolbox-cache-list":"2.10.0","@ampproject/toolbox-runtime-version":"2.10.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/toolbox-runtime-fetch_2.10.0_1718320503922_0.49140003777428554","host":"s3://npm-registry-packages"}},"2.10.1":{"name":"@ampproject/toolbox-runtime-fetch","version":"2.10.1","description":"Download the AMP runtime","main":"index.js","keywords":["amp","download","runtime"],"repository":{"type":"git","url":"git+https://github.com/ampproject/amp-toolbox.git","directory":"packages/runtime-fetch"},"author":{"name":"AMPHTML Team"},"license":"Apache-2.0","dependencies":{"@ampproject/toolbox-cache-list":"2.10.1","@ampproject/toolbox-core":"2.10.1","@ampproject/toolbox-runtime-version":"2.10.1","at-least-node":"1.0.0","fs-extra":"9.1.0","node-fetch":"2.6.7"},"bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"homepage":"https://github.com/ampproject/amp-toolbox/tree/main/packages/runtime-fetch","gitHead":"6103eb57765445355421826791361ac9ed9cf4d8","_id":"@ampproject/toolbox-runtime-fetch@2.10.1","_nodeVersion":"20.12.2","_npmVersion":"10.8.1","dist":{"integrity":"sha512-l8cEoF9zy0fWsUJ1RSSDPSLqp1QhrmcMU3nTDBA8/2TGtV6qEDxWbMVe4rU23NET9moOHfgCRo+boKE69z5AOQ==","shasum":"98051114e1e5fcf5944b6021a8e75ed021a4989b","tarball":"https://registry.npmjs.org/@ampproject/toolbox-runtime-fetch/-/toolbox-runtime-fetch-2.10.1.tgz","fileCount":4,"unpackedSize":15487,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpH7hJ9nLezVp8r4doVGpHnL2bI0aLw3sZjnAcOBAtmgIgJ+Qo9f0P5SQ2ECzIL9FY8evB/PNg7LV/wLoeOYP3Q7o="}]},"_npmUser":{"name":"ampproject-admin","email":"admin@ampproject.org"},"directories":{},"maintainers":[{"name":"ampproject-admin","email":"admin@ampproject.org"},{"name":"kristoferbaxter","email":"kbax@me.com"},{"name":"jridgewell","email":"justin+npm@ridgewell.name"},{"name":"choumx","email":"willchou@google.com"},{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},{"name":"fstanis","email":"filip@stanis.me"},{"name":"erwinmombay","email":"erwin.mombay@gmail.com"},{"name":"samouri","email":"jzfisgreat@gmail.com"},{"name":"caroqliu","email":"carolineliu@google.com"},{"name":"rsimha","email":"rsimha@amp.dev"},{"name":"dvoytenko","email":"dvoytenko@gmail.com"},{"name":"patrickkettner","email":"patrickkettner@gmail.com"},{"name":"alanorozco","email":"orozcoalan@gmail.com"},{"name":"kdwan","email":"kdwan@google.com"},{"name":"ampprojectbot","email":"bot@amp.dev"},{"name":"esth","email":"esther@amp.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/toolbox-runtime-fetch_2.10.1_1718325342452_0.048263884194267304"},"_hasShrinkwrap":false}},"time":{"created":"2020-04-03T08:24:12.861Z","modified":"2024-06-14T00:35:43.062Z","2.2.0":"2020-04-03T08:24:13.181Z","2.3.0":"2020-04-15T09:31:45.388Z","2.3.1":"2020-05-05T19:56:05.125Z","2.4.0-alpha.0":"2020-05-06T19:49:52.781Z","2.4.0-alpha.1":"2020-05-07T11:08:06.991Z","2.5.0":"2020-05-29T11:48:30.077Z","2.5.1":"2020-06-09T07:30:54.629Z","2.5.4":"2020-06-22T19:52:14.505Z","2.5.13":"2020-07-15T19:57:36.907Z","2.6.0":"2020-08-10T12:44:03.616Z","2.7.0-alpha.1":"2020-08-19T16:34:01.397Z","2.7.1-alpha.0":"2020-12-01T19:15:04.826Z","2.7.1":"2020-12-02T14:55:01.544Z","2.7.2":"2020-12-15T19:50:56.375Z","2.7.4":"2020-12-23T11:50:45.725Z","2.7.6":"2021-02-01T12:59:57.088Z","2.8.0-canary.0":"2021-02-12T17:24:50.268Z","2.8.0-canary.9":"2021-03-22T15:01:49.395Z","2.8.0-canary.15":"2021-03-30T20:35:16.215Z","2.8.0":"2021-05-31T14:35:52.885Z","3.0.0-canary.2":"2022-01-11T20:37:49.671Z","2.9.0":"2022-06-23T20:48:35.720Z","2.10.0":"2024-06-13T23:15:04.100Z","2.10.1":"2024-06-14T00:35:42.675Z"},"maintainers":[{"name":"ampproject-admin","email":"admin@ampproject.org"},{"name":"kristoferbaxter","email":"kbax@me.com"},{"name":"jridgewell","email":"justin+npm@ridgewell.name"},{"name":"choumx","email":"willchou@google.com"},{"name":"amp-toolbox","email":"amp-toolbox-eng@google.com"},{"name":"fstanis","email":"filip@stanis.me"},{"name":"erwinmombay","email":"erwin.mombay@gmail.com"},{"name":"samouri","email":"jzfisgreat@gmail.com"},{"name":"caroqliu","email":"carolineliu@google.com"},{"name":"rsimha","email":"rsimha@amp.dev"},{"name":"dvoytenko","email":"dvoytenko@gmail.com"},{"name":"patrickkettner","email":"patrickkettner@gmail.com"},{"name":"alanorozco","email":"orozcoalan@gmail.com"},{"name":"kdwan","email":"kdwan@google.com"},{"name":"ampprojectbot","email":"bot@amp.dev"},{"name":"esth","email":"esther@amp.dev"}],"author":{"name":"AMPHTML Team"},"repository":{"type":"git","url":"git+https://github.com/ampproject/amp-toolbox.git","directory":"packages/runtime-fetch"},"keywords":["amp","download","runtime"],"license":"Apache-2.0","homepage":"https://github.com/ampproject/amp-toolbox/tree/main/packages/runtime-fetch","bugs":{"url":"https://github.com/ampproject/amp-toolbox/issues"},"readme":"# AMP Download Runtime\n\n[![npm version](https://badge.fury.io/js/%40ampproject%2Ftoolbox-runtime-fetch.svg)](https://badge.fury.io/js/%40ampproject%2Ftoolbox-runtime-fetch)\n\nThe AMP Download Runtime tool fetches a complete, compiled AMP runtime and saves it to disk. You can use this tool to fetch [AMP Project releases](https://github.com/ampproject/amphtml/releases) from `cdn.ampproject.org` or direct it to download an AMP runtime hosted elsewhere.\n\nSpecial handling is included for amp-geo. For hosting environments that [dynamically modify `amp-geo.js`](https://github.com/ampproject/amphtml/blob/main/spec/amp-cache-guidelines.md#guidelines-adding-a-new-cache-to-the-amp-ecosystem) when served, this tool restores the content to its unpatched state.\n\n## Installation\n\nInstall via:\n\n```sh\nnpm install @ampproject/toolbox-runtime-fetch --save\n```\n\n## Options\n\n- `dest` (required `string`): Specify the destination directory where the AMP runtime should be saved. The runtime will be downloaded to an RTV-specific path under `dest`.\n- `clear` (optional `boolean`): Remove all contents from the destination directory before saving the AMP runtime. Defaults to `true`.\n- `rtv` (optional `string`): Specify the runtime version to download. Defaults to the latest production version available.\n- `ampUrlPrefix` (optional `string`): Specify the URL where the AMP runtime is hosted. Defaults to `https://cdn.ampproject.org`.\n\nNote: When downloading [AMP Project releases](https://github.com/ampproject/amphtml/releases), the runtime version (`rtv`) is obtained by prepending `01` (production) or `00` (canary) to the version. For example, the `rtv` for production release `2003101714470` is `012003101714470`.\n\n## Usage\n\nBasic usage:\n\n```js\nconst downloadRuntime = require('@ampproject/toolbox-runtime-fetch');\n\nlet result;\n\n// Download the latest AMP Project release to /tmp/amp/rtv/<rtv>,\n// where <rtv> is detected automatically\nresult = await downloadRuntime.getRuntime({\n  dest: '/tmp/amp' // Windows filesystem paths are also supported\n});\n\n// Download a specific version of the AMP runtime from Bing\nresult = await downloadRuntime.getRuntime({\n  dest: '/tmp/amp' // Windows filesystem paths are also supported\n  rtv: '011912201827130',\n  ampPrefixUrl: 'https://www.bing-amp.com'\n});\n\n/**\n * The object returned from getRuntime() includes the success or failure status,\n * as well as data about the AMP runtime that was downloaded:\n * {\n *   status: {boolean} Overall AMP runtime download status\n *   error: {string} Error message on failure\n *   count: {number} Number of files in the AMP runtime\n *   url: {string} URL to AMP runtime\n *   dest: {string} Path to directory where AMP runtime was downloaded\n *   rtv: {string} Runtime version of AMP runtime\n * }\n */\n```\n","readmeFilename":"README.md"}