newline-remove
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/newline-remove package

1.0.2 • Public • Published

newline-remove

NPM version build status Test coverage Downloads

Strip all newlines from the given string. Supports linux, osx and windows line endings.

Installation

$ npm i --save newline-remove

Overview

var removeNewline = require('newline-remove');
 
removeNewline('foo\n bar\n');
// => 'foo bar'

License

MIT © yoshuawuyts

/newline-remove/

    Package Sidebar

    Install

    npm i newline-remove

    Weekly Downloads

    403

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • yoshuawuyts