htz-padding
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

Build Status

htz-padding

A small, dependency free lib to pad some strings

Install

$ npm install htz-padding

Usage

import {paddingLeft} from 'htz-padding';

paddingLeft('hello', 5, '0');
// Outputs 0hello

paddingRight('hello', 5, '0');
// Outputs hello0

Readme

Keywords

none

Package Sidebar

Install

npm i htz-padding

Weekly Downloads

2

Version

1.0.8

License

ISC

Unpacked Size

3.05 kB

Total Files

4

Last publish

Collaborators

  • mreis1