Transform canonical URLs into AMP Cache URLs
npm install amp-toolbox-cache-url
Translates an URL from the origin to the AMP Cache URL format, according to the specification
available in the AMP documentation. This includes the SHA256 fallback URLs used by the AMP Cache on invalid human-readable cache urls.
#### ES Module (Browser)
``javascript`
import {ampToolboxCacheUrl} from 'amp-toolbox-cache-url';
#### CommonJs (Node)
`javascript`
const ampToolboxCacheUrl = require('amp-toolbox-cache-url').createCacheUrl;
#### UMD (Node, Browser)
In the browser, include the UMD module in an HTML