Skip to content

arshadkazmi42/special-append

Repository files navigation

special-append

Build NPM Version NPM Downloads Github Repo Size LICENSE Contributors Commit

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.

About

Append special character after every x characters

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •