JSPM

raptor-parse

0.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q27886F
  • License ISC

Parse Raptor's LDJSON metrics files

Package Exports

  • raptor-parse

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (raptor-parse) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

raptor-parse Build Status

Parse Raptor's LDJSON metrics files into the following JSON hierarchy:

  • app origin
    • timestamp of the test series
      • performance metric
        • array of values

Usage

$ raptor-parse metrics.ldjson

API

You can also use raptor-parse programmatically. It exposes two functions for working with Raptor data: read reads in a LDJSON stream with the raw metrics data and parse aggregates the data into a JSON object.

// Needed for Node.js 0.10 and 0.12.
require('babel/polyfill');

var fs = require('fs');
var rp = require('raptor-parse');

rp.read(fs.createReadStream(filename))
  .then(rp.parse)
  .then(console.log)
  .catch(console.error);

Installation

npm install -g raptor-parse