Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
electron-har
Advanced tools
A command-line tool for generating HTTP Archive (HAR) (based on Electron).
The data you get is identical to "Chromium -> Developer Tools -> Network pane -> Save All as HAR".
Prebuilt binaries can be found on the release(s) page.
You can also use npm:
npm install -g electron-har
In order for Electron to work on Debian/Ubuntu (specifically on Debian 8/Ubuntu 12.04) following packages have to be installed
libgtk2.0-0 libgconf-2-4 libasound2 libxtst6 libxss1 libnss3
.
electron-har http://google.com # writes HAR to stdout
# in a headless environment (CI agent on Linux?) - xvfb-run will do just fine
DISPLAY=:1 xvfb-run electron-har http://google.com -o google_com.har
# to see a complete list of command line options
electron-har --help
... or pragmatically
var electronHAR = require('electron-har');
electronHAR('http://enterprise.com/self-destruct', {
user: {
name: 'jean_luc_picard',
password: 'picard_4_7_alpha_tango'
}
}, function (err, json) {
if (err) {
throw err;
}
console.log(json.log.entries);
});
In a headless environment you might want to use kesla/headless (which will start Xvfn for you).
var headless = require('headless');
var electronHAR = require('electron-har');
(function (cb) {
if (!process.env.DISPLAY) {
headless(function (err, proc, display) {
if (err) {
return cb(err);
}
process.env.DISPLAY = ':' + display;
cb(null, proc);
})
} else {
process.nextTick(cb);
}
})(function (err, xvfb) {
if (err) {
throw err;
}
electronHAR(..., function (err, json) {
...
xvfb && xvfb.kill();
})
});
FAQs
A command-line tool for generating HTTP Archive (HAR) (based on Electron)
The npm package electron-har receives a total of 3 weekly downloads. As such, electron-har popularity was classified as not popular.
We found that electron-har demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.