paddys
paddys
is a package that pads strings so that each line is of the width of the longest line. It can also pad to a specific length.
yarn add -E paddys
Table Of Contents
API
The package is available by importing its default function:
paddys(
string: string,
options?: Config,
): string
Pads the string to the right to equalise the length of each line.
_paddys.Config
: Options for the program.
Name | Type | Description |
---|---|---|
width | number | The width to which to pad lines. |
/* yarn example/ */ const res =
Just stop your wandering,____________________
Look penetratingly into your inherent nature,
And, concentrating your spiritual energy,____
Sit in zazen_________________________________
And break through.___________________________
Copyright
© Art Deco 2019 | Tech Nation Visa Sucks |
---|