How to use ts-dedent - 1 common examples

To help you get started, we’ve selected a few ts-dedent examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github storybookjs / storybook / lib / components / src / syntaxhighlighter / formatter.ts View on Github external
export const formatter = memoize(2)((code: string) => dedent(code));

ts-dedent

TypeScript package which smartly trims and strips indentation from multi-line strings

MIT
Latest version published 3 years ago

Package Health Score

70 / 100
Full package analysis

Popular ts-dedent functions