1.2.3 • Published 4 years ago

hartonode v1.2.3

Weekly downloads
13
License
MIT
Repository
github
Last release
4 years ago

HAR to Node.js

It's a simple Node.js module that converts a requests to functions.

Installation

$ npm install -g hartonode

Usage

You can use it on three different ways.

  1. 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>');
  2. Generate a har file through your project.

    After import use function

    htn.harToNodeToFile('<harfile>')

    Output will be the file named as requests.ts and saved on the same folder

  3. Generate 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

1.2.3

4 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.7

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago