# ut-function.pad

> Pad string

Latest version **1.3.0** (published 2020-12-17) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install ut-function.pad
pnpm add ut-function.pad
yarn add ut-function.pad
bun add ut-function.pad
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.3.0 |
| Published | 2020-12-17 |
| First published | 2020-12-17 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 12.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | kalin.krustev |

## Links

- npm: https://www.npmjs.com/package/ut-function.pad
- Repository: https://github.com/softwaregroup-bg/ut-function
- Homepage: https://github.com/softwaregroup-bg/ut-function#readme
- Issues: https://github.com/softwaregroup-bg/ut-function/issues
- npm.io page: https://npm.io/package/ut-function.pad

## Recent versions

- 1.3.0 (latest) — 2020-12-17

## README

# ut-function.pad

String padding functionalities

## Installation

```sh
npm i ut-function.pad
```

## Usage examples

```js
const {padString, unpadString} = require('ut-function.pad');
padString('abcd', undefined, undefined, 10, 'ANSI X.923')
// abcd000003

unpadString('abcd000003', undefined, undefined, 'ANSI X.923')
// abcd

padString('abcd', undefined, undefined, 10, 'PKCS7')
// abcd030303

unpadString('abcd030303', undefined, undefined, 'PKCS7')
// abcd

padString('abcd', 'r', '0', 10)
// abcd000000

unpadString('abcd000000', 'r', '0')
// abcd

padString('abcd', 'l', 'F', 10)
// FFFFFFabcd

unpadString('FFFFFFabcd', 'l', 'F')
// abcd

```

---
_Source: https://npm.io/package/ut-function.pad · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
