linx-simulator2/node_modules/speaker/examples/stdin.js
2019-09-18 11:11:16 +03:00

11 lines
180 B
JavaScript

'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)