# rxgo-widget

> Web component for searching and comparing prices for medicines

Latest version **1.0.3** (published 2023-04-27) · SEE LICENSE IN LICENSE license · 0 weekly downloads

## Install

```sh
npm install rxgo-widget
pnpm add rxgo-widget
yarn add rxgo-widget
bun add rxgo-widget
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2023-04-27 |
| First published | 2023-04-26 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 6 |
| Unpacked size | 540 KB |
| Known vulnerabilities | 0 (+12 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | nick_durnev |
| Keywords | web-components, lit-element, javascript, lit |

## Links

- npm: https://www.npmjs.com/package/rxgo-widget
- npm.io page: https://npm.io/package/rxgo-widget

## Dependencies (6)

- [vite](https://npm.io/package/vite.md) ^4.3.1
- [jquery](https://npm.io/package/jquery.md) ^3.6.1
- [handlebars](https://npm.io/package/handlebars.md) ^4.7.7
- [typeahead.js](https://npm.io/package/typeahead.js.md) ^0.11.1
- [@tarekraafat/autocomplete.js](https://npm.io/package/@tarekraafat/autocomplete.js.md) ^10.2.7
- [shadow-container-query-polyfill](https://npm.io/package/shadow-container-query-polyfill.md) ^1.1.7

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2023-04-27
- 1.0.2 — 2023-04-26
- 1.0.1 — 2023-04-26

## README

# Rxgo widget

This project includes a sample component using LitElement with JavaScript.

## Usage

Install dependencies:

```bash
npm i
```

or add links to CDN

```html
<script type="importmap">
  {
    "imports": {
      "lit": "https://cdn.jsdelivr.net/npm/lit@2.7.0/+esm",
      "rxgo-widget": "https://unpkg.com/rxgo-widget@1.0.2"
    }
  }
</script>
```

Add <rxgo-widget> tag in you markup.

## Development

### Testing

This sample use modern-web.dev's
[@web/test-runner](https://www.npmjs.com/package/@web/test-runner) for testing. See the
[modern-web.dev testing documentation](https://modern-web.dev/docs/test-runner/overview) for
more information.

### Editing

If you use VS Code, we highly reccomend the [lit-plugin extension](https://marketplace.visualstudio.com/items?itemName=runem.lit-plugin), which enables some extremely useful features for lit-html templates:

- Syntax highlighting
- Type-checking
- Code completion
- Hover-over docs
- Jump to definition
- Linting
- Quick Fixes

The project is setup to reccomend lit-plugin to VS Code users if they don't already have it installed.

### Linting

Linting of JavaScript files is provided by [ESLint](eslint.org). In addition, [lit-analyzer](https://www.npmjs.com/package/lit-analyzer) is used to type-check and lint lit-html templates with the same engine and rules as lit-plugin.

The rules are mostly the recommended rules from each project, but some have been turned off to make LitElement usage easier. The recommended rules are pretty strict, so you may want to relax them by editing `.eslintrc.json`.

### Formatting

[Prettier](https://prettier.io/) is used for code formatting. It has been pre-configured according to the Lit's style. You can change this in `.prettierrc.json`.

Prettier has not been configured to run when commiting files, but this can be added with Husky and and `pretty-quick`. See the [prettier.io](https://prettier.io/) site for instructions.

### Static Site

This project includes a simple website generated with the [eleventy](11ty.dev) static site generator and the templates and pages in `/docs-src`. The site is generated to `/docs` and intended to be checked in so that GitHub pages can serve the site [from `/docs` on the master branch](https://help.github.com/en/github/working-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site).

To enable the site go to the GitHub settings and change the GitHub Pages &quot;Source&quot; setting to &quot;master branch /docs folder&quot;.</p>

The site will usually be served at http://localhost:8000.

### Scripts usage

```bash
npm start
```

Run web dev server.

```bash
npm run test
```

Run tests for component against Lit's development mode.

```bash
npm test:watch
```

Run tests for component in Lit's development mode.

```bash
npm test:prod
```

Run tests for component against Lit's production mode.

```bash
npm test:prod:watch
```

Run tests for component in Lit's production mode.

```bash
npm run docs
```

Run doc's static website.

```bash
npm run docs:serve
```

To serve doc's static website locally.

```bash
npm run docs:watch
```

To watch doc's static website files and re-build automatically.

```bash
npm run lint
```

Run project linting.

```bash
npm run build
```

Create build in <span style="color:yellow">dist</span> directory based on <span style="color:yellow">vite.config.js</span> file .

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