easy-pad

An easy way to pad string left side or right side.

Usage no npm install needed!

<script type="module">
  import easyPad from 'https://cdn.skypack.dev/easy-pad';
</script>

README

EASY PAD

GitHub issues

Install

npm:

npm install -save easy-pad

yarn:

yarn add easy-pad

Usage

const { padLeft, padRight } = require('./index.js');
padLeft('test', 10, '*');
// ******test;

padRight('test', 10, '*');
// test******;

License

MIT