textpad
A Javascript Library for text padding
- By Himanshu Jangid
How to Use -
- Install the package in you project
npm i textpad --save
- 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