Skip to content

GyeongHoKim/lfify

Repository files navigation

LFify

⚠️ Warning: All files must be encoded in UTF-8. The library is being developed to automatically convert UTF-8 with BOM to UTF-8 without BOM. Using different encodings may cause unexpected issues.

A lightweight Node.js library to convert CRLF to LF line endings.
It is useful when your development environment is Windows.

Getting started

create .lfifyrc.json

{
  "entry": "./",
  "include": [
    "**/*.{js,ts,jsx,tsx}",
    "**/*.{json,md}",
    "**/*.{css,scss}",
    "**/*.{html,vue}"
  ],
  "exclude": [
    "node_modules/**",
    ".git/**",
    "dist/**",
    "build/**",
    "coverage/**"
  ]
} 

and then

npx lifify

you can add options below.

Options

Option Description
--config <path> Specify a custom path for the configuration file. Default is .lfifyrc.json in the current directory.

Development

Prerequisites

  • Node.js 18 or higher
  • npm

Setup

Clone the repository:

git clone https://github.com/GyeongHoKim/lfify.git

Install dependencies:

npm install

Testing

npm test

Linting

npm run lint

Contributing

  1. Fork the repository
  2. Create a new branch
  3. Make your changes
  4. Run npm run lint to check your code
  5. Run npm test to check your code
  6. Submit a pull request

Issues and Support

If you have any issues or feedback, please open an issue on the GitHub repository.