0.0.1 • Published 8 years ago

manyline v0.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
8 years ago

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()
)