# hartonode

> Parser for requests saved to HAR file

Latest version **1.2.3** (published 2020-04-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install hartonode
pnpm add hartonode
yarn add hartonode
bun add hartonode
```

Provides the command `har-to-node`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.3 |
| Published | 2020-04-06 |
| First published | 2019-07-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 27.1 KB |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Michał Fidor |
| Maintainers | michalfidor |
| Keywords | parser, har, functions, node |

## Links

- npm: https://www.npmjs.com/package/hartonode
- Repository: https://github.com/MichalFidor/hartonode
- Issues: https://github.com/MichalFidor/hartonode/issues
- npm.io page: https://npm.io/package/hartonode

## Dependencies (9)

- [fs](https://npm.io/package/fs.md) 0.0.1-security
- [path](https://npm.io/package/path.md) ^0.12.7
- [jsesc](https://npm.io/package/jsesc.md) ^2.5.2
- [lodash](https://npm.io/package/lodash.md) ^4.17.15
- [request](https://npm.io/package/request.md) ^2.88.2
- [@types/jsesc](https://npm.io/package/@types/jsesc.md) ^2.5.0
- [sync-request](https://npm.io/package/sync-request.md) ^6.1.0
- [@types/lodash](https://npm.io/package/@types/lodash.md) ^4.14.149
- [convert-string](https://npm.io/package/convert-string.md) ^0.1.0

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 1.2.3 (latest) — 2020-04-06
- 1.2.2 — 2019-07-26
- 1.2.1 — 2019-07-26
- 1.2.0 — 2019-07-26
- 1.1.7 — 2019-07-26
- 1.1.3 — 2019-07-26
- 1.1.2 — 2019-07-26
- 1.1.1 — 2019-07-26
- 1.1.0 — 2019-07-23
- 1.0.9 — 2019-07-23
- 1.0.8 — 2019-07-23
- 1.0.7 — 2019-07-23
- 1.0.6 — 2019-07-23
- 1.0.5 — 2019-07-23
- 1.0.4 — 2019-07-23
- … 4 more at https://npm.io/package/hartonode/versions

## README

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

# Installation 
```sh
$ 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
    ```js
    var htn = require('hartonode');
    ```
    and then use it as
    ```js
    htn.harToNode('<harfile>');
    ```

2. Generate a har file through your project. 

    After import use function
    ```js
    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

---
_Source: https://npm.io/package/hartonode · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
