Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thomas-lebeau/zut
Makes your computer shout random stuffs at you.
https://github.com/thomas-lebeau/zut
Last synced: about 2 months ago
JSON representation
Makes your computer shout random stuffs at you.
- Host: GitHub
- URL: https://github.com/thomas-lebeau/zut
- Owner: thomas-lebeau
- License: mit
- Created: 2015-09-13T16:44:35.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-09T11:13:07.000Z (about 7 years ago)
- Last Synced: 2024-10-26T22:01:40.844Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 19.5 KB
- Stars: 2
- Watchers: 1
- Forks: 14
- Open Issues: 8
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# zut!
> We all swear at our computers when things go sideways. Now it's time for payback!
> **i.e.:** Makes your computer say random stuffs to you.## Install
```
$ npm install --save zut
```## Requirements
**zut!** uses OS specific dependancies.
- It works on **MacOS** using [say](https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/say.1.html). Configure it in the _System Preference_
- It works on **Linux** using [Festival](http://www.cstr.ed.ac.uk/projects/festival/)## Usage
```js
var zut = require('zut');zut();
//=> 📢 probably something stupid
```## Example
### With gulp```js
...
var zut = require('zut');gulp.task('sass', function() {
return gulp.src('style.scss')
.pipe(plumber({errorHandler: zut}))
.pipe(sass.sync()).on('error', sass.logError)
.pipe(gulp.dest('.'));
});
//=> 📢 "Oooh Snap!"
```### Custom Messages
```js
var zut = require('zut');zut({voice: 'Junior', messages: ['foo', 'bar', 'baz']});
//=> 📢 "bar" (randomly)
```## API
### zut([options])
#### options
##### voice
Type: `String`
Default: System Default##### messages
Type: `String`, `Array` or `Object`
##### filters
Type: `String`, `Array`
Restrict to one or more category.
_For now only one category is available: `errors`._## Contribute
Contributions welcome! You may want to check issue [#1](https://github.com/thomas-lebeau/zut/issues/1) but any other PR will be considered.
## FAQ
### What is 'zut'?"Zut!" is the French for "Damn!"
## License
MIT © [Thomas Lebeau](https://github.com/thomas-lebeau)