hartonode v1.2.3
HAR to Node.js
It's a simple Node.js module that converts a requests to functions.
Installation
$ npm install -g hartonodeUsage
You can use it on three different ways.
Use it to print output on the console or assign it to a variable
Import as a module
var htn = require('hartonode');and then use it as
htn.harToNode('<harfile>');Generate a har file through your project.
After import use function
htn.harToNodeToFile('<harfile>')Output will be the file named as
requests.tsand saved on the same folderGenerate a har file through console
In the console provide
har-to-node <file_path>. Output from this is the same as in the 2nd point.WARNING! After providing this command in the console, you can get error Error: Cannot find module 'yargs'. Just install it also globally and try again to use this command
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago