# playerui

> minimalistic mediaplayer commandline ui

Latest version **1.3.0** (published 2018-02-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install playerui
pnpm add playerui
yarn add playerui
bun add playerui
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.0 |
| Published | 2018-02-27 |
| First published | 2014-10-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 115.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Simon Kusterer |
| Maintainers | smblott, xat |
| Keywords | playerui, commandline |

## Links

- npm: https://www.npmjs.com/package/playerui
- Repository: https://github.com/xat/playerui
- Issues: https://github.com/xat/playerui/issues
- npm.io page: https://npm.io/package/playerui

## Dependencies (4)

- [pad](https://npm.io/package/pad.md) 0.0.5
- [chalk](https://npm.io/package/chalk.md) ^0.5.1
- [xtend](https://npm.io/package/xtend.md) ^4.0.0
- [single-line-log](https://npm.io/package/single-line-log.md) ^0.4.1

## Recent versions

- 1.3.0 (latest) — 2018-02-27
- 1.2.0 — 2014-12-07
- 1.1.0 — 2014-11-23
- 1.0.1 — 2014-10-30
- 1.0.0 — 2014-10-26

## README

# playerui

minimalistic mediaplayer commandline ui.

### sample

```javascript
var playerui = require('playerui');

// Initialize UI object
var ui = playerui();

// add some labels
ui.setLabel('source', 'Source', 'Ty Segall - Manipulator (Album)');
ui.setLabel('state', 'Playing', 'Playing...');
ui.setLabel('position', 'Position', '10:00 / 50:00');

// specify which labels to show
ui.showLabels('source', 'state', 'position');

// set progress bar to 20%
ui.setProgress(20);

// output
ui.render();
```
The above code will render this into the commandline

![Example UI](/example.png?raw=true "Example UI")

### Installation

`npm install playerui`

## License
Copyright (c) 2014 Simon Kusterer
Licensed under the MIT license.

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