🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

grunt-loadstats

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-loadstats

WIP: Grunt task for measure web applications load and rendering performance through the PhantomJS headless browser.

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

grunt-loadstats (WIP) Build Status NPM version Dependencies

Grunt task for measuring web page rendering performance through the PhantomJS headless browser.

The task works in conjunction with external plugins in order to generate a HAR formatted JSON document and store or process it.

Plugins

  • Console Plugin (ConsolePlugin)
    • The only built-in plugin, mainly to illustrate the use. It outputs the HAR formatted documents, along with a bunch of debug information, directly into the console.
  • MongoDB Plugin (loadstats-mongodb-plugin)
    • This plugin allows you to take the HAR formatted document and store it directly into MongoDB.

Getting Started

npm install grunt-loadstats --save-dev

Instructions on adding MondoDB storage support

Options

options.urls

Arrays of urls to run performance checks on.

Sample url entry:

{
  "key": "UniqueKeyToIdentifyUrl",
  "url": "http://www.opentable.com/about"
}

options.plugins

Array of plugins to use. No default is used and will fail without it. Built-in option is "ConsolePlugin".

Sample Configuration

loadstats: {
    about_stats: {
        urls: [
            {
                key: "OpenTableAboutPage",
                url: "http://www.opentable.com/about"
            }
        ],
        plugins: ["ConsolePlugin"]
    }
}

Keywords

PhantomJS

FAQs

Package last updated on 26 Oct 2014

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