linx-simulator2/node_modules/speaker/examples/stdin.js

11 lines
180 B
JavaScript
Raw Normal View History

2019-09-18 08:11:16 +00:00
'use strict'
/**
* Pipe data to stdin and it will be played through your speakers.
*/
const Speaker = require('../')
const speaker = new Speaker()
process.stdin.pipe(speaker)