Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including jiro with all npm packages installed. Try it out:

jiro lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("jiro/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

jiro v0.1.0

jiro

A task to load a url and calculate average load times via PhantomJS.

Getting Started

Install this plugin with: npm install jiro

Then add this line to your project's grunt.js file:

grunt.loadNpmTasks('jiro');

Overview

Specify a jiro section in your gruntfile. This will allow configurations for overriding options in the specified build scripts.

Options

url string

Specify a path for PhantomJS to load. This should be a fully qualified url.

iterations integer

Specify number of times url should be loaded.

resource string

Optional - Fully qualified url of a resource the target url is loading.

Sample config

A basic configuration:

jiro: {
    url: 'http://localhost/static/login.html',
    iterations: 100
}

A configuration specifying a point in time we care about:

jiro: {
    url: 'http://localhost/static/login.html',
    iterations: 100,
    resource: 'http://localhost/static/app.js'
}

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free