# denoland/dnt

Deno to npm package build tool.

Repository: https://github.com/denoland/dnt
Canonical: https://ross.abutalabs.com/products/dnt
Language: Rust
License: MIT
License Family: permissive
Last push: 2026-08-03T18:32:34+00:00

## Health v2 (maintenance only)
Score: 92/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 84, longevity 100
- inputs: {"age_days": 1810, "days_push": 30, "days_rel": 30, "gap_med": 37.0, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1334, forks 49 (observed 2026-08-28T04:04:25.229789+00:00)

## What it is
dnt (Deno to Node Transform) is a build tool that converts Deno modules into publishable npm packages for Node.js. It rewrites module specifiers, injects Deno shims, emits ESM/CommonJS/TypeScript declarations, and runs the output tests in Node.

## Use cases
- publish a Deno library as an npm package
- convert Deno code to run on Node.js
- generate ESM and CommonJS builds from one codebase
- emit TypeScript declaration files for an npm package
- run Deno tests against the Node.js build output
- map esm.sh or remote imports to npm dependencies

## When to choose
- you maintain a Deno module and want npm users to consume it
- you need dual ESM/CJS output with type declarations from a single source
- you want automated shimming of Deno-specific APIs for Node

## When to avoid
- your project is Node-only with no Deno source
- you need a general-purpose bundler rather than a Deno-to-Node converter
- your code depends heavily on Deno APIs with no npm equivalents

## Facets
- artifact type: cli-tool
- maturity: active
- function: build-tool, compiler, developer-tools, testing
- domain: developer-tools, cross-platform
- platform: cli, cross-platform
- tags: deno, npm, nodejs, package-publishing, esm, commonjs, typescript, transpilation, command-line

## Member repositories
- denoland/dnt (main) score 92

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:25.229789+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:44:32.358930+00:00, confidence not recorded.
  - readme: https://github.com/denoland/dnt (fetched 2026-08-28T04:04:25.229789+00:00, sha 7ff09e9cf2bf)
- Data as of 2026-08-30T08:39:29.467469+00:00.
