# pad **Repository Path**: mirrors_component/pad ## Basic Information - **Project Name**: pad - **Description**: String padding utilities - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-05-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # pad Trims string whitespace. ## Installation ``` $ npm install pad-component $ component install component/pad ``` ## API ### pad(str, len[, char]) Pad `str` on both sides to the given `len`, with optional `char` defaulting to a space. ### pad.left(str, len[, char]) Pad `str` on the left to the given `len` with optional `char`. ### pad.right(str, len[, char]) Pad `str` on the right to the given `len` with optional `char`. ## License MIT