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

    Keywords

    none

    Install

    npm i oneliner

    DownloadsWeekly Downloads

    276

    Version

    0.0.8

    License

    none

    Last publish

    Collaborators

    • johnpostlethwait