1.0.0 • Published 4 years ago

space-letters-test v1.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

space-letters-test

Insert spaces into a string

Follow this project's author, Phil Swartz, for updates on this project and others.

Install

Install with npm:

npm install space-letters-test

Usage

const spacing = require('space-letters-test');
const myString = 'Oh what a wonderful place!';

console.log(spacing(1, myString));
output: O h   w h a t   a   w o n d e r f u l   p l a c e !
console.log(spacing(2, myString));
output: O  h     w  h  a  t     a     w  o  n  d  e  r  f  u  l     p  l  a  c  e  !