# @ltmp/components

> A reusable template for getting started with Microsoft's FAST Element web component library.

Latest version **0.3.0** (published 2022-06-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ltmp/components
pnpm add @ltmp/components
yarn add @ltmp/components
bun add @ltmp/components
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2022-06-21 |
| First published | 2021-10-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 685.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | peter.szinek, konnorrogers, npahucki |

## Links

- npm: https://www.npmjs.com/package/@ltmp/components
- npm.io page: https://npm.io/package/@ltmp/components

## Dependencies (2)

- [tslib](https://npm.io/package/tslib.md) ^2.3.1
- [@microsoft/fast-element](https://npm.io/package/@microsoft/fast-element.md) ^1.4.0

## Recent versions

- 0.3.0 (latest) — 2022-06-21
- 0.2.1 — 2021-11-23
- 0.2.0 — 2021-11-14
- 0.1.0 — 2021-11-07
- 0.0.10 — 2021-10-28
- 0.0.9 — 2021-10-28
- 0.0.8 — 2021-10-28
- 0.0.7 — 2021-10-13
- 0.0.6 — 2021-10-12
- 0.0.5 — 2021-10-07
- 0.0.4 — 2021-10-07
- 0.0.3 — 2021-10-07
- 0.0.2 — 2021-10-06

## README

# Purpose

A reusable template for getting started with Microsoft's FAST Element
web component library.

## What's included?

- Typescript setup
- Web-dev-server
- Web-test-runner
- Initial structure
- Example counter component with tests.
- Changelog generation with `standard-changelog`
- Linting with `ts-standard`
- [Custom Elements manifest generation](https://custom-elements-manifest.open-wc.org/analyzer/getting-started/)

## Getting started

Click the `clone from template` button on Github.

Then, in your new repo do the following:

```bash
yarn install
yarn start
```

Navigate to `localhost:8000` and find the magic of the counter
component.

## Moving forward

Check out the `package.json` for all possible scripts.

## Documentation

### `<audio-playlist>`

The `<audio-playlist>` is a web component designed to make it easy to
setup a playlist.

The `<audio-playlist>` elements has a number of internal methods you can
use to create your own controls.

#### Usage

```js
import "@ltmp/components"
```

##### Controls

`<audio-playlist controls></audio-playlist>` will render an
audio-playlist with controls on it for play, pause, forward, backwards,
scrubbing, etc.

##### Hls

To use hls, you must first bind
[hls.js](https://github.com/video-dev/hls.js/) to the window. If your
bundler doesnt support UMD format, you may have to import Hls from a CDN
and attach it to `window.Hls`. Regardless, the audio-playlist component
will look for `window.Hls` from hls.js to be able to attach HLS
behavior.

Once you have `window.Hls` bound, you can do this:

`<audio-playlist controls hls></audio-playlist>` and then you have an
HLS audio playlist player!

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