special-append

1.0.1 • Public • Published

special-append

Build Status

Append special character after every x characters

Install

npm install special-append

Usage

const sAppend = require('special-append');

sAppend('123456789', '-', 3));
// Output: 123-456-789

sAppend('123456789', '$', 2);
// Output: 12$34$56$78$9

Parameters

  • value (string): string value.
  • character (string): character to append after x characters.
  • character limit: character limit after which the character will be added.

Contributing

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.

Contributors

Thank you to all the contributors who have helped us in making this project better 🙌

Package Sidebar

Install

npm i special-append

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

3.56 kB

Total Files

4

Last publish

Collaborators

  • arshadkazmi42