multiline - Multiline strings in JavaScript

  •        37

Use ES2015 template literals instead whenever possible.It works by wrapping the text in a block comment, anonymous function, and a function call. The anonymous function is passed into the function call and the contents of the comment extracted.

https://github.com/sindresorhus/multiline

Dependencies:

strip-indent : ^1.0.0

Tags
Implementation
License
Platform

   




Related Projects

jQuery.dotdotdot - jQuery.dotdotdot, advanced cross-browser ellipsis for multiple line content.

  •    Javascript

Dotdotdot is a jQuery plugin for truncating multiple line content on a webpage. It uses an ellipsis to indicate that there is more text than currently visible. Optionally, the plugin can keep a "read more" anchor visible at the end of the content, after the ellipsis.When using the jQuery.dotdotdot plugin, you don't need to worry about your HTML markup, the plugin knows its way around most elements. It's responsive, so when resizing the browser, the ellipsis will update on the fly.

dotdotdot-js - dotdotdot.js, advanced cross-browser ellipsis for multiple line content.

  •    TypeScript

Dotdotdot is a javascript plugin for truncating multiple line content on a webpage. It uses an ellipsis to indicate that there is more text than currently visible. Optionally, the plugin can keep a "read more" anchor visible at the end of the content, after the ellipsis. When using dotdotdot to truncate HTML, you don't need to worry about your HTML markup, the plugin knows its way around most elements. It's responsive, so when resizing the browser, the ellipsis will update on the fly.

strip-json-comments - Strip comments from JSON. Lets you use comments in your JSON files!

  •    Javascript

It will replace single-line comments // and multi-line comments /**/ with whitespace. This allows JSON error positions to remain as close as possible to the original source.Also available as a gulp/grunt/broccoli plugin.


sublime_alignment - Multi-line and multiple selection alignment plugin for Sublime Text 2

  •    Python

Multi-line and multiple selection alignment plugin for Sublime Text 2

cloc - Count Lines of Code

  •    Perl

cloc (Count Lines Of Code) counts, and computes differences of, comment lines, blank lines, and physical lines of source code in many programming languages.

Python Prompt Toolkit - Library for building powerful interactive command lines in Python

  •    Python

prompt_toolkit is a library for building powerful interactive command lines and terminal applications in Python. ptpython is an interactive Python Shell, build on top of prompt_toolkit. prompt_toolkit could be a replacement for GNU readline, but it can be much more than that.

node-source-map-support - Adds source map support to node.js (for stack traces)

  •    Javascript

This module provides source map support for stack traces in node via the V8 stack trace API. It uses the source-map module to replace the paths and line numbers of source-mapped files with their original paths and line numbers. The output mimics node's stack trace format with the goal of making every compile-to-JS language more of a first-class citizen. Source maps are completely general (not specific to any one language) so you can use source maps with multiple compile-to-JS languages in the same node process. If multiple sourceMappingURL comments exist in one file, the last sourceMappingURL comment will be respected (e.g. if a file mentions the comment in code, or went through multiple transpilers). The path should either be absolute or relative to the compiled file.

splitjoin.vim - A vim plugin that simplifies the transition between multiline and single-line code

  •    Vim

And another binding (default: gJ) for the opposite transformation.

ftellipsis - Multi-line ellipsis made possible

  •    Javascript

Solves the problem of applying ellipsis (…) on a multi-line block of text at the point it overflows its container. Ellipsis will work in conjuction with CSS column-count if you wish. Results are best in webkit browsers due to the availability of webkit-line-clamp. For non-webkit browsers FTEllipsis falls back to clamping text and positioning an element over the end of the overflowing line, allowing the developer to style this however they wish.

nanohtml - :dragon: HTML template strings for the Browser with support for Server Side Rendering in Node

  •    Javascript

HTML template strings for the Browser with support for Server Side Rendering in Node. By default all content inside template strings is escaped. This is great for strings, but not ideal if you want to insert HTML that's been returned from another function (for example: a markdown renderer). Use nanohtml/raw for to interpolate HTML directly.

massren - massren - easily rename multiple files using your text editor

  •    Go

Massren is a command line tool that can be used to rename multiple files using your own text editor. Multiple-rename tools are usually difficult to use from the command line since any regular expression needs to be escaped, and each tool uses its own syntax and flavor of regex. The advantage of massren is that you are using the text editor you use every day, and so can use all its features. The tool works by creating a file that contains the filenames of the target directory, and opening this file in the text editor. You can then modify the filenames there directly. Once done, save the text file and the files will be renamed. Lines that are not changed will simply be ignored.

char-rnn - Multi-layer Recurrent Neural Networks (LSTM, GRU, RNN) for character-level language models in Torch

  •    Lua

This code implements multi-layer Recurrent Neural Network (RNN, LSTM, and GRU) for training/sampling from character-level language models. In other words the model takes one text file as input and trains a Recurrent Neural Network that learns to predict the next character in a sequence. The RNN can then be used to generate text character by character that will look like the original training data. The context of this code base is described in detail in my blog post. If you are new to Torch/Lua/Neural Nets, it might be helpful to know that this code is really just a slightly more fancy version of this 100-line gist that I wrote in Python/numpy. The code in this repo additionally: allows for multiple layers, uses an LSTM instead of a vanilla RNN, has more supporting code for model checkpointing, and is of course much more efficient since it uses mini-batches and can run on a GPU.

KMPlaceholderTextView - A UITextView subclass that adds support for multiline placeholder written in Swift

  •    Swift

A UITextView subclass that adds support for multiline placeholder written in Swift. You can set the value of the placeholder property just like using UITextField.

textFit - A jQuery-free component that quickly fits single and multi-line text to the width (and optionally height) of its container

  •    Javascript

A fast, dependency-free text sizing component that quickly fits single and multi-line text to the width and/or height of its container. textFit supports IE9+, Firefox, Chrome, Opera, and most mobile browsers. If you find an incompatibility, please file an issue.

rtail - rtail(1) - Terminal output to the browser in seconds, using UNIX pipes.

  •    CSS

rtail is a command line utility that grabs every line in stdin and broadcasts it over UDP. That's it. Nothing fancy. Nothing complicated. Tail log files, app output, or whatever you wish, using rtail broadcasting to an rtail-server – See multiple streams in the browser, in realtime.Whether you deploy your code on remote servers using multiple environments or simply have multiple projects, you must ssh to each machine running your code, in order to monitor the logs in realtime.

streamlink-twitch-gui - A multi platform Twitch.tv browser for Streamlink

  •    Javascript

Streamlink Twitch GUI, previously known as Livestreamer Twitch GUI, has been renamed in early december 2016. A comment regarding this change can be found in the thread "The future of Livestreamer Twitch GUI". A graphical user interface on top of the Streamlink command line interface.