Skip to content

Normalize the newline characters in a string to `\n`

License

Notifications You must be signed in to change notification settings

sindresorhus/normalize-newline-cli

Repository files navigation

normalize-newline-cli

Normalize the newline characters in a string to \n

Install

npm install --global normalize-newline-cli

Usage

$ normalize-newline --help

  Usage
    $ normalize-newline <string>
    $ cat file.txt | normalize-newline

  Example
    $ cat mixed-newlines.txt | normalize-newline > lf-newlines.txt

Related