join-me
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

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

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i join-me

    Weekly Downloads

    0

    Version

    0.1.7

    License

    MIT

    Unpacked Size

    3.98 kB

    Total Files

    7

    Last publish

    Collaborators

    • yhabib