Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

r2d2

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

r2d2 - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

4

package.json
{
"name": "r2d2",
"version": "0.0.2",
"description": "node test with play-sound",
"version": "0.0.3",
"description": "Plays a random sound as a notification from console or cli",
"main": "index.js",

@@ -6,0 +6,0 @@ "scripts": {

# r2d2
node test with play-sound
Sound notifier
## Description
Plays a random sound (mp3,ogg) as a notification from console or cli
## Install
```bash
npm install r2d2 --save
```
## Usage
Create an instance and call `headsUp()`:
```javascript
var notifier = require('r2d2')();
notifier.headsUp(function(err){
if(err) {
console.error('Error: couldn\'t play sound because:');
console.error(err.stack);
}
console.log('You\'ve been notified');
});
```
## API
### headsUp([callback])
Plays a random sound and executes callback. Callback signature is `(err)` (aka *thunk*)
Just for fun and testing
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc