map-join

1.0.0 • Public • Published

map-join

🧩 A tiny utility that maps over an array and joins the results into a single string. Perfect for rendering HTML lists, CSVs, or custom string formats.

npm version
License: MIT


📦 Installation

npm install map-join
# or
yarn add map-join

🚀 Usage

const mapJoin = require('map-join');

const items = [1, 2, 3];
const html = mapJoin(items, (item) => `<li>${item}</li>`);

console.log(html);
// Output: "<li>1</li><li>2</li><li>3</li>"

💡 Why Use map-join?

  • Lightweight – zero dependencies
  • Clean & readable – combines mapping and joining in one line
  • Reusable – works for various string formatting needs
  • Safe – includes basic input validation

📄 License

MIT License © Aman Pareek


🔗 Links

Readme

Keywords

Package Sidebar

Install

npm i map-join

Weekly Downloads

4

Version

1.0.0

License

MIT

Unpacked Size

2.34 kB

Total Files

3

Last publish

Collaborators

  • amanpareek