# dnt - Deno to Node Transform

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

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=6089](https://news.hada.io/topic?id=6089)
- GeekNews Markdown: [https://news.hada.io/topic/6089.md](https://news.hada.io/topic/6089.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2022-03-05T10:27:06+09:00
- Updated: 2022-03-05T10:27:06+09:00
- Original source: [github.com/denoland](https://github.com/denoland/dnt)
- Points: 5
- Comments: 1

## Topic Body

- Deno 모듈을 Node.js 용 npm 패키지로 변환해주는 도구   
- Node.js랑 호환되는 TypeScript 코드로 변경   
  - Deno 네임스페이스 API들에는 shim 삽입   
  - Skypack 이나 esm.sh 같은 리모트 임포트를 package.json 에 추가   
- tsc를 이용해서 변환한 코드의 타입 체킹   
- ESM/CommonJS,TypeScript 선언 파일 생성   
- Deno.test() 호출을 통해서 최종 출력물을 Node.js 에서 테스트

## Comments



### Comment 9147

- Author: xguru
- Created: 2022-03-05T10:27:09+09:00
- Points: 2

[How to publish Deno modules to NPM](https://deno.com/blog/dnt-oak) 글에서 dnt를 이용해서 HTTP 미들웨어/라우터 프레임워크인 oak 를 Node용으로 변환한 후기를 볼 수 있습니다.
