open-index/open-npm huggingface dataset:
npm package: @harmansran/my-web-component
Description: Web Component + React integration demo
Author: Harman Sran
Latest version: 0.0.2


Defines a new custom element, `<simple-demo />`.
## Installation

Via npm:

`npm install @harmansran/my-web-component`

Via unpkg:

`<script src="https://unpkg.com/@harmansran/my-web-component/build/index.js" />`

## Usage

If installed via `npm`, import with:

`import '@harmansran/my-web-component';`

Then use the `<simple-demo />` custom element in your host application.

`<simple-demo />` mounts a React component in a `<div />` shadow root that it appends to your document.
npm package: @harmock/playwright
Description: Capture, mock, and replay HTTP requests to create fast, reliable, and deterministic frontend tests with minimal setup and intuitive APIs.
Author: HARmock
Latest version: 1.0.0

# @harmock/playwright

@harmock/playwright is a lightweight helper library that makes integrating HARMock seamless in your Playwright tests. Effortlessly capture, mock, and replay HTTP requests to create fast, reliable, and deterministic playwright tests with minimal setup and intuitive APIs.

## Installation

Note that Playwright is a peer dependency of this package
```bash
npm install @harmock/playwright
# or
yarn add @harmock/playwright
```

## Usage
```js
import { test } from '@harmock/playwright';
import path from 'path';

test.use({ baseURL: 'http://localhost:3000', harPath: path.join(__dirname, 'data.har') });
test('test', async ({ page }) => {
  // Your test code
});
```