dedent
html-es6cape
dedent | html-es6cape | |
---|---|---|
3 | 1 | |
880 | 5 | |
- | - | |
6.7 | 2.3 | |
21 days ago | 7 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.
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.
html-es6cape
-
A look back at my first published npm library 5 years ago
For the sake of this article, we will be focusing on the library https://github.com/AntonioVdlC/html-es6cape by first looking at the original code that has been published for the past 5 years, then we will look at some of the changes I recently made on that project and finally reflect a bit on the tooling current landscape.
What are some alternatives?
node-sql-template-strings - ES6 tagged template strings for prepared SQL statements 📋
isomorphic-dompurify - Use DOMPurify on server and client in the same way
core-js - Standard Library
BizCharts - Powerful data visualization library based on G2 and React.
javascript - JavaScript Style Guide
Babel (Formerly 6to5) - 🐠 Babel is a compiler for writing next generation JavaScript.
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.
eslint-config-standard - ESLint Config for JavaScript Standard Style
graphql-tag - A JavaScript template literal tag that parses GraphQL queries
PKI.js - PKI.js is a pure JavaScript library implementing the formats that are used in PKI applications (signing, encryption, certificate requests, OCSP and TSP requests/responses). It is built on WebCrypto (Web Cryptography API) and requires no plug-ins.
type-fest - A collection of essential TypeScript types
tinyhttp - 🦄 0-legacy, tiny & fast web framework as a replacement of Express