🚀 Socket Launch Week 🚀 Day 2: Introducing Repository Labels and Security Policies.Learn More
Socket
Sign inDemoInstall
Socket

manyline

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

manyline

Multiline strings that respect the indentation of your source.

0.0.1
latest
npm
Version published
Weekly downloads
3
200%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 14 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts