{"name":"oneliner","description":"Converts a string that contains line feed characters into one that doesn't.","version":"0.0.2","keywords":["strip","text","trim",""],"repositories":[{"type":"git","url":"git://github.com/JohnPostlethwait/oneliner.git"}],"licenses":[{"name":"MIT","url":"http://opensource.org/licenses/mit-license.php"}],"readme":"# Oneliner #\n\nConverts a string that contains line feed characters into one that doesn't.\n\n## Installation ##\n\n```bash\nnpm install oneliner\n```\n\n## Usage ##\n\n```javascript\nvar oneliner = require('oneliner');\n\nvar template = \"    <html>\\n\\n<head></head>\\n<body>...</body>\\n</html>\\n\\n     \";\n\noneliner(template);\n```\nThe output should be:\n\n```javascript\n\"<html><head></head><body>...</body></html>\"\n```\n\nTo skip the whitespace trimming you may pass 'true' as the optional second argument:\n\n```javascript\noneliner(template, true);\n```\n\nAnd the output should be:\n\n```javascript\n\"    <html><head></head><body>...</body></html>     \";\n```\n\n## Arguments ##\n\n1) The string to oneline.\n2) Optionally pass 'true' to skip the whitespace trimming on the beginning and ending of the string.\n","_id":"oneliner@0.0.2","dist":{"shasum":"184eef3a2b73cc82064bc2c2aca50b44ed15b991","tarball":"http://registry-npm.ywwl.com/oneliner/download/oneliner-0.0.2.tgz","integrity":"sha512-/zQiazvkcETb7BhE9kR3JqdANv2p4AbLnRSasEJDNtHgUfsHlOedRBhGqSq1zy9w/f32T90LtBgVnzBrohcNqw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCsP0rmM0yMcEpziEttKJJUsf+LF28gfoVosok7SOzk0AIgA7XCSqUfUXs6Zlfkn7LF0i/WyVuXtfW7qXatElBfQ/0="}],"size":1004,"noattachment":false,"key":"/oneliner/-/oneliner-0.0.2.tgz"},"_npmVersion":"1.1.49","_npmUser":{"name":"johnpostlethwait","email":"john.postlethwait@gmail.com"},"maintainers":[{"name":"johnpostlethwait","email":"john.postlethwait@gmail.com"}],"directories":{},"publish_time":1347787521273,"_cnpm_publish_time":1347787521273,"dist-tags":{"latest":"0.0.8"}}