common-tags
common-tags copied to clipboard
🔖 Useful template literal tags for dealing with strings in ES2015+
Each commit has a body with some more more information about the changes. Commit (a68b0f3) drops support for Node.js 10 making it a breaking change which might be possible to...
Not sure if I'm using this correctly, but `commaListsAnd` returns undefined values when using function format. ```js const tags = require("common-tags"); const bar = ["one", "two", "three"]; console.log("1.", tags.commaListsAnd`${bar}`); //...
First off, thanks for an amazing and simple library! I like using `oneLine` to keep long text within 100 characters 🙌. However, (as far as I know) there is no...
Hey 👋 First thanks for this very useful package! Found it thanks to this [article](https://2ality.com/2016/05/template-literal-whitespace.html) and is suuuper handy! ### Description I came across a situation where I need to...
Reference: https://twitter.com/feross/status/1389385719035006976
Fixes https://github.com/zspecza/common-tags/issues/210
Currently this code will give an `TypeError`. ``` stripIndent` \4 ` ``` Result is: ``` /home/vagrant/test/node_modules/common-tags/lib/stripIndentTransformer/stripIndentTransformer.js:20 var match = endResult.match(/^[^\S\n]*(?=\S)/gm); ^ TypeError: Cannot read property 'match' of undefined at Object.onEndResult...
I am trying no nest codeBlock (or html), but I am unable to do this for the root level indentation: ```js import { codeBlock } from 'common-tags'; const bc =...
I have this line of code:  but, the 1st line of variables that contain their line break and indent not stripped at 1st line, it takes the 8 spaces...
issues #125