vtextpad

text padding library for padding text either in left or right of the given input, and padding text selection is possible

Usage no npm install needed!

<script type="module">
  import vtextpad from 'https://cdn.skypack.dev/vtextpad';
</script>

README

textpad

A Javascript Library for text padding

- By Himanshu Jangid

How to Use -

  1. Install the package in you project
    npm i textpad --save
  2. Check our documentation
    Click Here For Documentation
  • Example 1 -
const input = 12
const ouput = textpad.leftpad(12, 3, '0')
console.log(output)
// output - 012 
  • Example 2 -
const input = 12
const ouput = textpad.rightpad(12, 3, 'A')
console.log(output)
// output - 12A 

  • This Library one from the collection of libraries created by Vedik Devs in VCF

  • Thank You For Choosing Our Package - From VCF