Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eol-converter-cli

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eol-converter-cli

Newline converter CLI for simple CRLF -> LF (and reverse) convertions of multiple files.

  • 1.0.8
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.8K
decreased by-0.31%
Maintainers
1
Weekly downloads
 
Created
Source

Newlines (EOL) converter CLI

Having troubles with different line endings? :flushed:

This library will simply convert files of your choice to Windows (CRLF), or popular LF line ends used on Linux and Mac.

Installation:

npm i -g eol-converter-cli

API: eolConverter OptionalModifier "glob_files_regex"

  • OptionalModifier can be empty, warmup, or crlf - see examples.
  • For files paths resolution is used GLOB regex

Examples

Run just warmup - to see which files will be affected:

eolConverter warmup "**/*.js"

Run conversions (cannot be undone):

To LF (Unix & Mac default)

eolConverter "**/*.js"
eolConverter "**/*.{js,jsx,ts,tsx}"
eolConverter "src/**/*.js"
eolConverter "{src,tests}/**/*.js"

To CRLF (Windows default)

eolConverter crlf "**/*.js"

Tips

PS: Don't forget to configure you favourite IDE to work with desired line endings, so that you won't need this tool again! :smirk:

Please give project :star: if you like it!

License

Apache 2.0 © Juraj Husár

Keywords

FAQs

Package last updated on 05 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc