# pad-stream **Repository Path**: mirrors_sindresorhus/pad-stream ## Basic Information - **Project Name**: pad-stream - **Description**: Pad each line in a stream - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2026-05-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # pad-stream > Pad each line in a stream ## Install ```sh npm install pad-stream ``` ## Usage ```js // pad.js import padStream from 'pad-stream'; process.stdin.pipe(padStream(2, '>')).pipe(process.stdout); ``` ``` $ echo 'foo\nbar' | node pad.js >>foo >>bar ``` ## API ### padStream(count, indent?) Returns a [transform stream](https://nodejs.org/api/stream.html#stream_duplex_and_transform_streams). #### count Type: `number` *(integer)* The number of times to repeat `indent`. #### indent Type: `string`\ Default: `' '` The string to use as indent. ## Related - [indent-string](https://github.com/sindresorhus/indent-string) - Indent each line in a string - [indent-string-cli](https://github.com/sindresorhus/indent-string-cli) - Indent each line in some text or stdin