0.1.0 • Published 6 years ago

insert-every-nth v0.1.0

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

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 '