How to use the phantomas function in phantomas

To help you get started, we’ve selected a few phantomas 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 zenorocha / browser-calories-api / index.js View on Github external
export default async function(req, res) {
  const query = url.parse(req.url, true).query;

  if (!query.url) {
    send(res, 403);
  }

  try {
    const data = await phantomas(query.url);
    send(res, 200, formatRes(data.json));
  }
  catch(err) {
    send(res, formatErr(err));
  }
}

phantomas

Headless Chromium-based web performance metrics collector and monitoring tool

BSD-2-Clause
Latest version published 1 month ago

Package Health Score

77 / 100
Full package analysis

Popular phantomas functions