html-template-tag
dedent
html-template-tag | dedent | |
---|---|---|
2 | 3 | |
59 | 910 | |
- | - | |
2.7 | 6.7 | |
22 days ago | 5 months ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
html-template-tag
- Vanilla Node.js
-
What have I learned in a month of JavaSript development as a Python developer
f strings in python are pretty close, but have you seen html tagged template strings in js? It handles html escaping by default and with a VS Code extension it will highlight the html code as well: https://github.com/AntonioVdlC/html-template-tag
dedent
-
All JavaScript and TypeScript features of the last 3 years explained
and so `dedent` would not strip any indentation. That is, `dedent` is meant to identify the maximal common leading indentation in the template as written by the developer, which should not depend on the values of the interpolands.
A stale GitHub issue on the dmnd/dedent repo has a real-world example where this matters and led to a subtle bug: https://github.com/dmnd/dedent/issues/22
-
I thought I knew what I was doing
There is also some other interesting use cases.
What are some alternatives?
react-templates - Light weight templates for react
node-sql-template-strings - ES6 tagged template strings for prepared SQL statements 📋
jsx-control-statements - Neater If and For for React JSX
core-js - Standard Library
common-tags - 🔖 Useful template literal tags for dealing with strings in ES2015+
graphql-tag - A JavaScript template literal tag that parses GraphQL queries
vnjs_vanillanodejs_2022w
javascript - JavaScript Style Guide
voronoi - Parametric Voronoi generator with real time editing and SVG export
webpack - A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.