npm.io
1.0.2 • Published 9 years ago

strip-formatting

Licence
ISC
Version
1.0.2
Deps
1
Vulns
0
Weekly
0

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>
  ...
`)

Keywords