Skip to content

vigour-io/strip-formatting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Removes leading whitespace from each line of input

Resources

License

Stars

Watchers

Forks

Packages

No packages published