# Show GN: CRLF를 LF로 강제해주는 도구, LFify

> Clean Markdown view of GeekNews topic #28038. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=28038](https://news.hada.io/topic?id=28038)
- GeekNews Markdown: [https://news.hada.io/topic/28038.md](https://news.hada.io/topic/28038.md)
- Type: show
- Author: [rlarudgh2017](https://news.hada.io/@rlarudgh2017)
- Published: 2026-03-31T12:08:29+09:00
- Updated: 2026-03-31T12:08:29+09:00
- Original source: [npmjs.com](https://www.npmjs.com/package/lfify)
- Points: 1
- Comments: 0

## Topic Body

CRLF를 LF로 변환해주는 툴입니다, Husky와 Lefthook등과 같이 사용할 수 있습니다.  
  
코드 컨벤션을 보통 LF로 하실텐데, .gitattribute로 eol=lf를 넣어도 그냥 CRLF로 올리시는 분들은 항상 존재합니다. 결국 직접 git으로 renormalize 해서 올려줘야 하고 그게 귀찮아서 만들었습니다.  
  
git hook중 pre-commit 훅 설정을 세팅해서 git 레포에 올려놓으면 모든 사람들이 commit하기전에 crlf -> lf 수행합니다. Husky나 Lefthook을 많이들 사용하시니까 문서에 예시 설정을 넣었습니다. husky나 lefthook을 안써도 .git폴더 하위 hooks 폴더에 pre-commit 훅으로 추가하면 됩니다.  
  
그냥 한번만 돌리고 싶다면, nodejs 설치 후 커맨드라인 명령어 실행해서 일회성으로 특정 폴더를 LF로 변환해줄 수도 있습니다.  
  
npmjs: https://www.npmjs.com/package/lfify  
github: https://github.com/GyeongHoKim/lfify

## Comments



_No public comments on this page._
