Licence
ISC
Version
0.1.0
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Insert Every Nth
A package that inserts a string into another string after nth character.
Installation
Using npm:
$ npm i -g npm
$ npm i --save insert-every-nth
Example
// Load the package into a project.
var everyOther = require('insert-every-nth');
// Call the insert method.
everyOther.insert('THIS IS AN EXAMPLE', ' ', 1)
// Returns 'T H I S I S A N E X A M P L E '