npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

amp-toolbox-cache-list

0.1.6 • Public • Published

AMP-Toolbox Cache List

npm version

Lists known AMP Caches, as available at https://cdn.ampproject.org/caches.json.

By default, it uses a one-behind strategy to fetch the caches. This can be customised by passing a custom fetch strategy to the constructor.

Usage

  const Caches = require('amp-toolbox-cache-list');
 
  // Lists known AMP Caches
  const caches = await new Caches().list();
 
  // Retrieves a specific AMP cache
  const googleAmpCache = await caches.get('google');

install

npm i amp-toolbox-cache-list

Downloadsweekly downloads

263

version

0.1.6

license

Apache-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability