{"library":"common-tags","type":"library","category":null,"description":"common-tags provides a collection of reusable template literal tag functions for JavaScript (ES2015+). These tags offer functionalities like HTML escaping (`html`, `safeHtml`), string stripping and indentation (`stripIndent`, `oneLine`), and list formatting (`commaLists`, `inlineLists`). The current stable version is 1.8.2. While there's a pre-release v2.0.0-alpha.1 hinting at future TypeScript adoption and documentation rewrite, the package has a relatively stable, though not very frequent, release cadence for major features, with minor patches addressing bugs or internal tooling. It differentiates itself by offering a robust, well-tested set of common string manipulation utilities often needed when working with template literals, particularly for generating clean, formatted output like HTML or SQL, without the overhead of larger templating engines. It also provides an API for creating custom tags, emphasizing modularity and extensibility for custom text processing scenarios. Since version 1.8.0, it is entirely dependency-free, making it a lightweight choice for modern JavaScript projects.","language":"javascript","status":"active","version":"1.8.2","tags":["javascript","array","babel","es2015","es2015-tag","es6","es6-tag","heredoc","html"],"last_verified":"Wed May 27","install":[{"cmd":"npm install common-tags","imports":["import { html } from 'common-tags';","import { stripIndent } from 'common-tags';","import { TemplateTag } from 'common-tags';"]},{"cmd":"yarn add common-tags","imports":[]},{"cmd":"pnpm add common-tags","imports":[]}],"homepage":null,"github":"https://github.com/zspecza/common-tags","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/common-tags","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/common-tags/compatibility"}}