Automatic discovery of ports

If you have published your module both on and NPM Denoify should be able to automatically resolve your Deno distribution, what do I mean by that?

Examples of resolutions that denoify can perform automatically

Let's assume we are in a project, in our node_modules directory we have the following three Denoified modules:


// src/foo.ts
import { assert } from "tsafe/assert";
import type { Equals } from "tsafe";
import * as ns from "my-dummy-npm-and-deno-module";
import { Cat } from "my-dummy-npm-and-deno-module/dist/lib/Cat";
import { createLexer } from "leac";


Now if we run npx denoify it will generates this:
// deno_dist/foo.ts
import { assert } from "[email protected]/assert.ts";
import type { Equals } from "[email protected]/mod.ts";
import * as ns from "[email protected]/mod.ts";
import { Cat } from "[email protected]/lib/Cat.ts";
import { createLexer } from "";
If tsafe wasn't published on instead of[email protected]/assert.ts we would have
Denoify always find the files on GitHub first and then try to see if it can get the same file with a url on a best effort basis.
If you want it to work your repo should have the same name as the deno module you have published ( we replace the - by _ ).


For some reason, automatic resolution dosen't work well with your module?
Please reach out by opening a discussion!
If you want to check for common problem before contacting the community here are some things you might want to check out: