0.1.0 • Published 6 years ago
insert-every-nth v0.1.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 '
0.1.0
6 years ago