Skip to content

timepurge/farx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircleCI

Generate .farx files for Fiddler Autoresponder

Useful when using Fiddler Autoresponder with builds that generate dynamic filenames, as in create-react-app.

Installation

npm install farx --save-dev

Usage

Declare a rule json as follows:

const rule = [
    {
        match: "https://a.com/1.jpg",
        action: "C:\\Documents\\1.jpg"
    }
]

To generate farx xml :

const farxxml = farx.generate(rule);

To save farx xml in Desktop, with callback on save:

const desktopPath = require('path').join(require('os').homedir(), 'Desktop');
const farxxml = farx.generate(rule,desktopPath, (farxfile) => {
    //farxfile is the path to the newly generated file in Desktop
} );

About

generate farx files for fiddler autoresponder

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published