strip-formatting

1.0.2 • Public • Published

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

Package Sidebar

Install

npm i strip-formatting

Weekly Downloads

4

Version

1.0.2

License

ISC

Last publish

Collaborators

  • vigour-io