{"name":"oneliner","description":"Converts a string that contains line feed characters into one that doesn't.","version":"0.0.4","keywords":["strip","text","trim"],"repository":{"type":"git","url":"https://github.com/JohnPostlethwait/oneliner"},"licenses":[{"type":"MIT +no-false-attribs","url":"http://github.com/isaacs/npm/raw/master/LICENSE"}],"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.4","dist":{"shasum":"02752315febdcde169537fa64505b37e0734fc56","tarball":"http://registry-npm.ywwl.com/oneliner/download/oneliner-0.0.4.tgz","integrity":"sha512-pT38jVcoZsagym7cdq8Q+qs3QjunZuq2ZT3dsGPOW9kARTp25bPPrfzFtZZpv/Z+M/mTVHj5eCKB0TAgHo+RHg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAnIaRm+tXA1fmO3aT/nUHuccTfzFMGm6MYqrpNjg2krAiEA1OjUsekKr599nbGnt0exz+6MErPvdifj4KRLZJGs9Vk="}],"size":1014,"noattachment":false,"key":"/oneliner/-/oneliner-0.0.4.tgz"},"_npmVersion":"1.1.49","_npmUser":{"name":"johnpostlethwait","email":"john.postlethwait@gmail.com"},"maintainers":[{"name":"johnpostlethwait","email":"john.postlethwait@gmail.com"}],"directories":{},"publish_time":1347788434514,"_cnpm_publish_time":1347788434514,"dist-tags":{"latest":"0.0.8"}}