DEPRECATED: This package has been deprecated in favor of common-tags.
Template literal utilities under the form of tags
Utility to write template literals without having to worry about whitespace after newline feeds and before text, and newline feeds.
import {noMultiSpaceAfterLineFeed} from 'tempura'; const myMultilineString = noMultiSpaceAfterLineFeed` My Super String That is well indented. `; console.log(myMultilineString); /* Outputs the following My Super String That is well indentend */Utility to remove all newline characters from a template literal.
import {noMultiLine} from 'tempura'; const myMultilineString = noMultiLine` expression that should be on a single line but is multilined for line length `; console.log(myMultilineString); /* Outputs the following expression that shouldbe on a single linebut is multilined for line length */Utility to remove all whitespace in template literals.
import {noWhitespace} from 'tempura'; const myStringWithWhiteSpace = noWhitespace` expression that shouldn't have whitespace in it, but has some for clarity in code `; console.log(myStringWithWhiteSpace); /* Outputs the following expressionthatshouldn'thavewhitespaceinit,buthassomeforclarityincode */