JSPM

strip-formatting

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 398
  • Score
    100M100P100Q88499F
  • License ISC

Removes leading whitespace from each line of input

Package Exports

  • strip-formatting

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 (strip-formatting) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

strip-formatting

Build Status js-standard-style npm version Coverage Status

var stripped = stripFormatting(val)

Removes leading whitespace from each line of input

  • val (string) - The string to strip formatting from
const stripFormatting = require('strip-formatting')
stripFormatting(`
<html>
  <head>
    <title>whatever</title>
  </head>
  ...
`)