join-strings

1.0.0 • Public • Published

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'

Readme

Keywords

Package Sidebar

Install

npm i join-strings

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • bsonntag