-
... ition(filePath)) // send file var stream = fs.createReadStream(filePath) stream.pipe(res) onFinished(res, function () { destroy(stream) }) }) ``` ## Testing ```sh $ npm test ``` ## References - [RFC 2616: Hypertext Transfer Protocol -- HTTP ...
-
... n onRequest(req, res) { var stream = fs.createReadStream('package.json') stream.pipe(res) onFinished(res, function (err) { destroy(stream) }) }) ``` ## License [MIT](LICENSE) [npm-image]: https://img.shields.io/npm/v/on-finished.svg [npm-ur ...
-
... onst duplex = WebSocket.createWebSocketStream(ws, { encoding: 'utf8' }); duplex.pipe(process.stdout); process.stdin.pipe(duplex); ``` ### Other examples For a full example with a browser client communicating with a ws server, see the exampl ...
-
MP3 Read an MP3 file or stream, or write an MP3 file (can also read Ogg) This class is a wrapper for the *nix command-line tools curl and lame , making it easy to access MP3 files and MP3 (shoutcast/icecast) internet streams. This implies t ...
-
... ng; ^str.find("unixCmd").isNil and: { str.find("File").isNil } and: { str.find("Pipe").isNil } and: { str.find("Public").isNil } } // lookup findKeyForAddr { arg addr; everybody.keysValuesDo {|key, val| if(val == addr) {^key } }; ^nil } // ...
-
MP3: Filter: Description Class methods new lamepath curlpath readToBuffer Inherited class methods Instance methods start fifo playing stop restart finish Inherited instance methods Examples Classes (extension) | Libraries > MP3'>MP3 MP3 Ext ...
-
... nixCmd").isNil and: { textArchive.find("File").isNil } and: { textArchive.find("Pipe").isNil } and: { textArchive.find("systemCmd").isNil } } put {|key, value| value.checkCanArchive; // at least this warns if(acceptEvents || value.isKindOf( ...
-
... tl for the kraken ( MKtl.all.kraken.free; MKtl( \kraken, NTMI.kraken.desc ); // pipe serial input data into the kraken MKtl // do valueActions in MKtl only when values changed: MFdef(\kr_buts).add(\store, { |rawvals| var krakButs = MKtl(\kr ...
-
... ht as roughly analogous to sends, busses, or submixes on an analog mixer, or as pipes allowing one to route "flowing" signals. If a synth is connected to a bus at a certain point (thus "flowing" into it) a synth taking the signal from the s ...
-
... ew ; server.doWhenBooted({ // load a buffer for all the files in samplePath p = Pipe .new( "ls -R" + samplesPath, "r" ) ; l = p.getLine ; while({l.notNil}, { case { l.contains( "/" ) } { samplesPath = l.split($:)[0] } { (l.contains( "/" ).n ...