Skip to content
/ join-me Public

Utility to join list of words with a separator and the last one with keyword

License

Notifications You must be signed in to change notification settings

yhabib/join-me

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

joinMe CI

Utility to join list of words with a separator and the last one with keyword.

Install

$ npm install join-me

Use

const joinMe = require('join-me');

const list = ['hello', 'hallo', 'ciao', 'hola'];
let readableList = joinMe({ list }) // hello, hallo, ciao and hola

// pass extra arguments
readableList = joinMe({ list, keyword: ' und ' }) // hello, hallo, ciao und hola
readableList = joinMe({ list, separator: '|', keyword: '-' }) // hello|hallo|ciao-hola

License

MIT © Yusef Habib

About

Utility to join list of words with a separator and the last one with keyword

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •