Skip to content

Converts a string that contains line feed characters into one that doesn't.

Notifications You must be signed in to change notification settings

JohnPostlethwait/oneliner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Oneliner

Converts a string that contains line feed characters into one that doesn't.

Installation

npm install oneliner

Usage

var oneliner = require('oneliner');

var template = "    <html>\n\n<head>\n        </head>\n<body>...</body>\n</html>\n\n     ";

oneliner(template);

And the output will be:

"<html><head> </head><body>...</body></html>"

About

Converts a string that contains line feed characters into one that doesn't.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published