Append special character after every x characters
npm install special-append
const sAppend = require('special-append');
sAppend('123456789', '-', 3));
// Output: 123-456-789
sAppend('123456789', '$', 2);
// Output: 12$34$56$78$9
- value (string): string value.
- character (string): character to append after x characters.
- character limit: character limit after which the character will be added.
Interested in contributing to this project? You can log any issues or suggestion related to this library here.
Read our contributing guide to get started with contributing to the codebase.
Thank you to all the contributors who have helped us in making this project better 🙌