Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@api-client/har

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@api-client/har

Everything related to HAR processing and visualizing in API Client.

  • 0.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Deprecated

This component is deprecated. Use @advanced-rest-client/app instead.


A module containing all logic and UIs related to HAR data processing in Advanced REST Client.

Published on NPM

Tests and publishing

Usage

Installation

npm install --save @api-client/har

Visualizing HAR data

<section>
  <har-viewer></har-viewer>
</section>

<script type="module" src="@api-client/har/har-viewer.js"></script>
<script>
  const har = await getHarData();
  document.body.querySelector('har-viewer').har = har;
</script>

Transforming the request object

To transform ARC request object into a HAR log, use the HarTransformer class.

import { HarTransformer } from '@api-client/har';

const processor = new HarTransformer('My app name', 'My app version');
const result = await processor.transform([arcRequest]);

The argument of the transform function accepts an array of requests to create a multi page HAR object.

Development

git clone https://github.com/@api-client/har
cd arc-har
npm install

Running the demo locally

npm start

Running the tests

npm test

License

API Components by Pawel Psztyc is licensed under CC BY 4.0

Keywords

FAQs

Package last updated on 20 Oct 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc