# node-copy-paste - 크로스 플랫폼 시스템 클립보드 도구

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

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=9472](https://news.hada.io/topic?id=9472)
- GeekNews Markdown: [https://news.hada.io/topic/9472.md](https://news.hada.io/topic/9472.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2023-06-25T10:03:02+09:00
- Updated: 2023-06-25T10:03:02+09:00
- Original source: [github.com/xavi-](https://github.com/xavi-/node-copy-paste)
- Points: 17
- Comments: 2

## Topic Body

- OS별 시스템 클립보드 접근 도구들을 Wrapping 하여 어디서나 같은 방식으로 사용가능한 CLI   
  - OSX: pbcopy/pbpaste   
  - Windows: clip  
  - Linux/FreeBSD/OpenBSD: xclip

## Comments



### Comment 16727

- Author: joyfui
- Created: 2023-06-25T11:47:31+09:00
- Points: 2

오! 직접 clip 호출해서 사용할 땐 한글이 깨졌는데 얘는 그런 문제가 없네요

### Comment 16728

- Author: joyfui
- Created: 2023-06-25T11:56:38+09:00
- Points: 2
- Parent comment: 16727
- Depth: 1

코드를 살펴보니 clip에 문자열 넘겨주기 전에 인코딩 과정을 거치는군요. 배워갑니다.
