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
Cut Data Warehouse Costs by 54% Icon
Cut Data Warehouse Costs by 54%

Easily migrate from Snowflake, Redshift, or Databricks with free tools.

BigQuery delivers 54% lower TCO with exabyte scale and flexible pricing. Free migration tools handle the SQL translation automatically.
Start Free
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