1.0.0 • Published 8 years ago

join-strings v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
8 years ago

join-strings

Join ALL the strings!

npm install --save join-strings

Usage

With a delimiter:

var joinStrings = require('join-strings');
joinStrings(', ', 'hello', 'world');
// returns 'hello, world'

With an options object:

var joinStrings = require('join-strings');
joinStrings({ delimiter: ' ', prefix: '> ', suffix: '!' }, 'hello', 'world');
// returns '> hello world!'

With an array of strings:

var joinStrings = require('join-strings');
joinStrings(', ', ['hello', 'world']);
// returns 'hello, world'