alf-converter
Converts ALF data to latest schema version
Install
npm install --save alf-converter
Usage
Usage: bin [options] <files...>
Options:
-h, --help output usage information
-V, --version output the version number
-f, --format <format> source file format (default, auto-detect)
-v, --version <version> source file format version (default, auto-detect)
-o, --output <file> Write output to <file> instead of stdout
API
Import
// default, ES5 (pre-compiled)
Require
// default, ES5 (pre-compiled)var converter = var detector =
converter(data [, options])
Returns a Promise
-
options:
const options = format: 'HAR' version: '1.2' serviceToken: 'token-foo'
- the promise resolves with an object representing the latest ALF version
- If
options
not provided, automatic detection of source object will be triggered usingdetector
Promise below
detector(data)
Returns a Promise
- the promise resolves with an object with the following properties
-
data:
Object
same as thedata
passed to the promise -
format:
String
one of"ALF"
or"HAR"
.
©️ www.mashape.com · License: ISC · Github: @mashape · Twitter: @mashape