Skip to content

Latest commit

 

History

History
31 lines (17 loc) · 769 Bytes

File metadata and controls

31 lines (17 loc) · 769 Bytes

Documentation / API / Output / Stream

(Class) Pipe extends Stream

Provide this class to a ShairportSync instance to make it output to a pipe file.

Class

Create ShairportSync instance using Pipe this way:

import {ShairportSync, Pipe} from 'shairport-sync';

const output = new Pipe();

output.file = '/my/pipe/file/path';

const instance = new ShairportSync(output);

Read Stream reference for full implementation.

Properties

Pipe instances expose the folowing properties:

Name Type Read-Only Default Desciption
file String false The path to the pipe file. (can be changed only when instance ins stopped)