open-index/open-npm huggingface dataset:
npm package: @lwdev/audio-player
Description: Audio player web component with optional playlist/album view
Author: Milan Zítka
Latest version: 0.0.8

# lw-audio-player

Audio player web component with optional playlist/album view

[![package-badge]][package]
[![jsdelivr-badge]][jsdelivr]

## Screenshot
![LW Audio Player](lw-audio-player.png)

## Docs
You can find documentation at [audio-player.littlewall.dev](https://audio-player.littlewall.dev)

## Quick start

```html
<script src="https://cdn.jsdelivr.net/npm/@lwdev/audio-player@latest" type="module"></script>

<lw-audio-player>
    <lw-audio-player-song
        artist="Milan Zítka"
        album="Yellow World (EP, 2023)"
        cover="/images/yellow-world.jpg"
        url="/audio/milan-zitka_yellow_world.mp3"
        title="Yellow World"
    ></lw-audio-player-song>
</lw-audio-player>
```

## v1.0 checklist
* [x] core functions
* [ ] better design
* [ ] assets lazyload
* [ ] separate CDN and npm build
* [ ] finished documentation

## License

MIT License.

[package]: https://www.npmjs.com/package/@lwdev/audio-player
[package-badge]: https://img.shields.io/npm/v/@lwdev/audio-player?style=flat-square
[jsdelivr]: https://www.jsdelivr.com/package/npm/@lwdev/audio-player
[jsdelivr-badge]: https://data.jsdelivr.com/v1/package/npm/@lwdev/audio-player/badge
npm package: @lwe8/dts
Description: Getting the DTS from a JavaScript file
Author: Pho Thin Mg
Latest version: 0.2.1

# lwe8-dts

## content

- [Overview](#overview)
- [Install](#install)
- [Use](#use)
- [API](#api)
- [License](#license)

## Overview

Getting the DTS from a JavaScript file.

## Install

```shell
npm i lwe8-dts
```

```shell
pnpm i lwe8-dts
```

## Use

### cli

```shell
npx dts -f bar/foo.js
```

### Common Js

```js
var { compile } = require("lwe8-dts");
```

### ESM

```js
import { compile } from "lwe8-dts";
```

## API

### Exports

- This package exports:

  - javascript function: `compile`

- There is no default export.

### `compile`

#### Parameters

##### `file`

- Path to Javascript file , that want to generate dts file, `.js`,`.cjs`,`.mjs` extensions are supported.
- type: `string`

##### `outdir`

- Optional
- Output directory of dts file, same directory of Javascript file as default.
- type : `string`

##### Example

```js
import { compile } from "lwe8-dts";

const file = "src/index.js";
const out = "dist";

compile(file, out);
```

### CLI

#### `-f` or `--file`

- Path to Javascript file.

#### `-o` or `--outdir`

- Optional
- Output directory of dts file

##### Example

```shell
npx dts -f src/index.js -o dist
```

> 💡 If you import some local module to Javascript file like `import foo from "./foo/index.js"`, not like `import foo from "./foo"`
> will generate related dts file.

## License

[MIT][file-license] © [Pho Thin Mg][ptm]

<!-- Definitions -->

[file-license]: LICENSE
[ptm]: https://github.com/phothinmg