{"library":"ts-dedent","type":"library","category":null,"description":"ts-dedent is a TypeScript package designed to intelligently remove common leading indentation and trim leading/trailing empty lines from multi-line strings, primarily when used with ES6 template literals. It aims to make highly indented code blocks within strings, such as SQL queries, HTML, or code samples, readable in source code without affecting their runtime representation. The current stable version is 2.2.0, with releases occurring irregularly, typically driven by dependency updates or minor bug fixes rather than continuous feature development. Key differentiators include its TypeScript-first approach, smart handling of indentation (only removing common leading whitespace), and robust support for template literal placeholders, building on concepts from other dedent libraries while providing specific TypeScript advantages.","language":"javascript","status":"maintenance","version":"2.2.0","tags":["javascript","dedent","deindent","indentation","multi-line string","multiline strings","template literals","template strings","ts","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install ts-dedent","imports":["import dedent from 'ts-dedent';","const dedent = require('ts-dedent').default;","import dedent from 'ts-dedent';"]},{"cmd":"yarn add ts-dedent","imports":[]},{"cmd":"pnpm add ts-dedent","imports":[]}],"homepage":null,"github":"https://github.com/tamino-martinius/node-ts-dedent","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ts-dedent","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/ts-dedent/compatibility"}}