How to use the calibre.Snapshot.create function in calibre

To help you get started, we’ve selected a few calibre examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github calibreapp / cli / examples / nodejs / snapshots / create.js View on Github external
const createSnapshot = async () => {
  // Required
  const site = 'calibre'

  // Optional
  const ref = 'v100'

  // Create the snapshot
  const snapshot = await Snapshot.create({
    site,
    ref
  })

  // Output the formatted JSON response
  console.log(JSON.stringify(snapshot, null, 2))
}

calibre

Calibre - Page speed performance testing with Google Lighthouse

MIT
Latest version published 11 days ago

Package Health Score

81 / 100
Full package analysis