1. linify
Transform a file's line endings from `\r\n` to `\n`.
linify
Package: linify
Created by: ForbesLindesay
Last modified: Sun, 19 Jun 2022 12:33:15 GMT
Version: 1.0.1
License: MIT
Downloads: 3,167
Repository: https://github.com/ForbesLindesay/linify

Install

npm install linify
yarn add linify

Linify

Transform a file's line endings from \r\n to \n.

Installation

npm install linify

API

linify(path, options)

Recursively transforms a directory or file and returns an array of the paths of all the files that were transformed.

  • path: string path to either a file or a directory
  • options: object hash of:
    • filter: any kind of filter on the paths that should be transformed
    • preview: if true then the transformed files are not actually written

License

MIT

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code