Not Pictured: Mangoes

    manyline

    0.0.1 • Public • Published

    Multiline strings that respect the indentation of your source.

    Example

    const ml = require('manyline')
     
    console.log(
      ml `Hello, world.`
         `ml lets you do multiline text sequences`
         `You can end them with .end` .end
    )
     
    console.log(
      ml `You can get get the lines as an`
         `array with .lines` .lines
    )
     
    console.log(
      ml `Interpolation works as with String.raw:`
         `2 + 2 = ${2 + 2}` .end
    )
     
    console.log(
      ml `And you can,`
         `if you like,`
         `use .toString()` .toString()
    )

    Keywords

    none

    Install

    npm i manyline

    DownloadsWeekly Downloads

    3

    Version

    0.0.1

    License

    ISC

    Last publish

    Collaborators

    • queerviolet