⚠️ 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 lififyyou 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.gitInstall dependencies:
npm installnpm testnpm run lint- Fork the repository
- Create a new branch
- Make your changes
- Run
npm run lintto check your code - Run
npm testto check your code - Submit a pull request
If you have any issues or feedback, please open an issue on the GitHub repository.