⚠️ 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.
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.
Option | Description |
---|---|
--config <path> |
Specify a custom path for the configuration file. Default is .lfifyrc.json in the current directory. |
- Node.js 18 or higher
- npm
Clone the repository:
git clone https://github.com/GyeongHoKim/lfify.git
Install dependencies:
npm install
npm test
npm run lint
- Fork the repository
- Create a new branch
- Make your changes
- Run
npm run lint
to check your code - Run
npm test
to check your code - Submit a pull request
If you have any issues or feedback, please open an issue on the GitHub repository.