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

quilted

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quilted

A css/js coverage tool for websites.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

quilted logo

quilted

Build Status Coverage Status npm

A css/js coverage tool for websites built using Puppeteer.

Quilted Cli

Installation

With npm:

npm install --save quilted

With yarn:

yarn add quilted

Usage

CLI

quilted <url> [options]

Module

import quilted from 'quilted';

quilted('https://example.com').then(coverage => {
  // ...
});

CLI

$ quilted --help

Usage: quilted <url> [options]

Basic options:
  --no-css      disables css code coverage                             [boolean]
  --no-js       disables js code coverage                              [boolean]
  --origin, -o  only cover same-origin assets                          [boolean]

Puppeteer options:
  --timeout, -t           maximum number of milliseconds to wait for the browser
                          to start                                      [number]
  --viewportWidth, --vw   sets viewport width for page render           [number]
  --viewportHeight, --vh  sets viewport height for page render          [number]
  --viewport, -V          sets viewport for page render i.e. 800x600    [string]
  --userAgent, --ua       sets the user agent for the request           [string]
  --headers, -H           sets headers for the page request
                          example: $0 <url> -H "X-Header: 123"           [array]

Options:
  --version, -v  Show version number                                   [boolean]
  --help         Show help                                             [boolean]

Module Options

OptionDescriptionDefault
jsRun js coverage.true
cssRun css coverage.true
sameOriginOnly cover requests from the same originfalse

Puppeteer Supported Options

OptionDescriptionDefault
argsChrome command line flagsnull
timeoutMaximum number of milliseconds to wait for the browser to start30000
cookiesSet cookies for the page request.null
headersSet headers for the page request.null
userAgentSets the user agent for the page request.Default Chrome Headless User Agent String
viewportSets the viewport size for the page request.800x600

License

MIT

Keywords

FAQs

Package last updated on 12 May 2018

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