Multiline is a small JavaScript utility created to make multiline strings easier to write before template literals became standard. It extracts the contents of a block comment placed inside an anonymous function and returns that text as a string. This avoids long chains of concatenated strings or arrays joined with newline characters. A stripIndent helper removes redundant leading indentation while preserving the intended layout. The package can be used for CLI help text, welcome messages, test fixtures, and multiline queries. It primarily targets Node.js, although it can also work in browsers with a bundler. The repository is archived and deprecated, and its own documentation recommends ES2015 template literals for modern code.

Features

  • Block-comment based multiline strings
  • Automatic newline preservation
  • Optional indentation stripping
  • Node.js-focused usage
  • Browser support through bundlers
  • Useful for help text, fixtures, messages, and queries

Project Samples

Project Activity

See All Activity >

Categories

System

License

MIT License

Follow Multiline

Multiline Web Site

Other Useful Business Software
Paessler: Easy to Use With Enterprise Power. Free Trial Icon
Paessler: Easy to Use With Enterprise Power. Free Trial

A low-code dashboard makes monitoring intuitive for any admin, while scripting and custom sensors give experts full control.

You shouldn't have to choose between a monitoring tool that's easy to use and one that's powerful enough for a complex environment. PRTG's low-code interface lets any admin build dashboards, set alerts and monitor devices without scripting, while custom sensors and full API access are there when your team needs deeper control. One platform, no compromise. Download a free 30-day trial now.
Get Free Download
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Multiline!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript System Software

Registered

2026-09-09