Skip to content

Instantly share code, notes, and snippets.

View photopresentr's full-sized avatar

photopresentr

View GitHub Profile
@photopresentr
photopresentr / har2siege.js
Created December 15, 2013 16:04
Convert HAR Archive to Siege URL List using node.js
#!/usr/bin/env node
/*
* har2siege.js
* converts a HAR file generated by chrome to an url file as required
* by the siege performance testing tool (http://www.joedog.org/siege-home/)
*
* Usage:
* - save har file in chrome. make sure extension is .json, e.g. myrequests.json
* - put the relative path as the only parameter on the command line
* - redirect STDOUT to the file you want as the urllist for siege