JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 35147785
  • Score
    100M100P100Q233883F
  • License MIT

An ES6 string tag that strips indentation from multi-line strings

Package Exports

  • dedent

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (dedent) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Dedent

An ES6 string tag that strips indentation from multi-line strings.

Usage

var dd = require('dedent');

function usageExample() {
  return dd`A string that gets so long you need to break it over multiple
            lines. Luckily dedent is here to keep it readable without lots of
            spaces ending up in the string itself.`;
}

usageExample().indexOf('  '); //=> -1

License

MIT