New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

pad-stream

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pad-stream

Pad each line in a stream

latest
Source
npmnpm
Version
4.0.0
Version published
Maintainers
1
Created
Source

pad-stream

Pad each line in a stream

Install

npm install pad-stream

Usage

// 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.

count

Type: number (integer)

The number of times to repeat indent.

indent

Type: string
Default: ' '

The string to use as indent.

  • indent-string - Indent each line in a string
  • indent-string-cli - Indent each line in some text or stdin

Keywords

pad

FAQs

Package last updated on 26 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts