oneliner

0.0.8 • Public • Published

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>"

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.8929latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.8929
0.0.70
0.0.60
0.0.50
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i oneliner

Weekly Downloads

799

Version

0.0.8

License

none

Last publish

Collaborators

  • johnpostlethwait