# osx-volume

> Get a and set the volume of your Mac

Latest version **0.0.1** (published 2014-08-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install osx-volume
pnpm add osx-volume
yarn add osx-volume
bun add osx-volume
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2014-08-13 |
| First published | 2014-08-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Dennis Timmermann |
| Maintainers | dennistimmermann |
| Keywords | osx, mac, volume, audio, sound |

## Links

- npm: https://www.npmjs.com/package/osx-volume
- Repository: https://github.com/dennistimmermann/osx-volume
- Issues: https://github.com/dennistimmermann/osx-volume/issues
- npm.io page: https://npm.io/package/osx-volume

## Recent versions

- 0.0.1 (latest) — 2014-08-13

## README

# osx-volume

Get and set the volume of your Mac

## Installation
### [npm](http://npmjs.org)

    $ npm install osx-volume

## API
    var volume = require('osx-volume')

### volume.get(callback)
    volume.get(function(value, [error]) {
        console.log(value)  //0...100
    })

### volume.set(vaule, [callback])
    volume.set(50) {
        //volume set to 50%
    })

    volume.set(69, function(error) {
        console.log('an error occured:', error)
    })

### volume.mute([callback])
    volume.mute()

    volume.mute(function(error) {
        //...
    })

### volume.unmute([callback])
    volume.unmute()

    volume.unmute(function(error) {
        //...
    })

### volume.levels(callback)
    volume.levels(function(obj, [error]) {
        console.log(obj)
        // { out: [0..100],
        //   in: [0..100]},
        //   alert: [0..100],
        //   muted: [true|false]
        // }
    })

## License

MIT

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