Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

amp-toolbox-cache-list

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amp-toolbox-cache-list

Lists AMP Caches

  • 1.2.0-alpha.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
126
decreased by-40%
Maintainers
1
Weekly downloads
 
Created
Source

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');

Keywords

FAQs

Package last updated on 07 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc