open-index/open-npm huggingface dataset:
npm package: @hanasis/sound-play
Description: An sound player for NodeJS.
Author: nomadhoc, Hanasis Platform
Latest version: 1.1.0-e

# sound-play

_Dead simple sound player for Node -- because it should be simple._

```javascript
const sound = require("sound-play");
sound.play("file.mp3");
```
- Native solution. Does not require third-party application to work on `Windows` and `MacOS`.

- Support `.wav`, `.mp3` and other extensions.


# Install

```
npm install sound-play
```

```
yarn add sound-play
```

# Examples

### Relative path

```javascript
sound.play("file.mp3");
```

or

```javascript
const path = require("path");
const filePath = path.join(__dirname, "file.mp3");
sound.play(filePath);
```

### Adjusting Volume

```javascript
/**
 * 0   = silent
 * 0.5 = default
 * 1   = max volume
 */
volume = 0.1;
sound.play("file.mp3", volume);
```

### Absolute path

```javascript
sound.play("C:\\file.mp3");
```

### Promise

```javascript
sound.play("file.mp3").then((response) => console.log("done"));
```

### Async/await

```javascript
try {
  await sound.play("file.mp3");
  console.log("done");
} catch (error) {
  console.error(error);
}
```

# License

MIT
npm package: @hanaworks/yuki
Description: Yuki is a framework for making bots
Author: miruchigawa
Latest version: 0.2.0

# Yuki Framework

## About

Yuki is a lightweight and simple framework designed for creating bots. It is inspired by discord.js and will also support shards, enabling connections across multiple accounts. Yuki is currently in development and we are open to collaboration opportunities.Yuki is a lightweight and simple framework designed for creating bots. It is inspired by discord.js and will also support shards, enabling connections across multiple accounts. Yuki is currently in development.

## Usage

Install with

``` zsh
$ yarn add @hanaworks/yuki 
```

See example at [index.ts](tests/index.ts)

## Contributing

Todo

## Changelog

[Changelog.md]()

## License 

This project uses the MIT license which can be viewed [here](LICENSE).
npm package: @hanbi/web-utils
Description: A small collection of test helpers for the web
Author: James Garbutt
Latest version: 0.0.2

[![npm](https://img.shields.io/npm/v/@hanbi/web-utils)](https://www.npmjs.com/package/@hanbi/web-utils)

# @hanbi/web-utils

`@hanbi/web-utils` is a small collection of utilities for reducing boilerplate
in tests of primarily web-based projects.

# Install

```
$ npm i -D @hanbi/web-utils
```

# Usage

## `waitForFrame()`

Uses `requestAnimationFrame` to wait for a single animation frame before
continuing.

```ts
test('my test', async () => {
  // dom setup here
  await utils.waitForFrame();
});
```

## `waitForSelector(node, selector[, attempts])`

Waits for a CSS selector to match an element in a specified node.

```ts
test('my test', async () => {
  // dom setup here
  await utils.waitForSelector(document.body, 'my-element');
});
```

## `waitForEvent(node, event)`

Waits for a particular event to have been emitted by the specified node.

**NOTE** this should usually be called and awaited separately as you'll see in
the example. This is to ensure any internal event handlers have been setup
before continuing.

```ts
test('my test', async () => {
  // dom setup here
  const eventPromise = utils.waitforEvent(node, 'load');
  // do whatever should cause the 'load' event to be emitted
  const event = await eventPromise;
  // `event` is now the event which was emitted
});
```

# License

MIT