DeindentTemplateLiteralString

Exports a simple function that can be passed a template literal. It strips code indentation from it while preserving intended indentation, by stripping out the smallest indent every line has in common.

These are versions of this script where the code was updated. Show all versions.

  • v1.2 2024-10-07

    Changed license to Unlicense on all scripts

  • v1.2 2024-10-01 Imported from URL
  • v1.2 2024-10-01