{"id":18075773,"url":"https://github.com/hugoalh/deno-nodejs-transformer","last_synced_at":"2026-05-06T22:03:15.312Z","repository":{"id":258910866,"uuid":"860817970","full_name":"hugoalh/deno-nodejs-transformer","owner":"hugoalh","description":"A Deno module for transform Deno package to NodeJS package. This is a modified edition of the JSR package `dnt`.","archived":false,"fork":false,"pushed_at":"2024-10-24T04:23:05.000Z","size":79,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-24T21:52:06.239Z","etag":null,"topics":["build","builder","deno","nodejs","package","transform","transformer"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hugoalh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-21T08:47:05.000Z","updated_at":"2024-10-24T04:23:08.000Z","dependencies_parsed_at":"2024-10-24T22:04:15.008Z","dependency_job_id":"598f8bba-9c64-4e37-a575-414a318d5de7","html_url":"https://github.com/hugoalh/deno-nodejs-transformer","commit_stats":null,"previous_names":["hugoalh-studio/deno-nodejs-transformer","hugoalh/deno-nodejs-transformer"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugoalh%2Fdeno-nodejs-transformer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugoalh%2Fdeno-nodejs-transformer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugoalh%2Fdeno-nodejs-transformer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugoalh%2Fdeno-nodejs-transformer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hugoalh","download_url":"https://codeload.github.com/hugoalh/deno-nodejs-transformer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393539,"owners_count":20931809,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["build","builder","deno","nodejs","package","transform","transformer"],"created_at":"2024-10-31T11:07:15.264Z","updated_at":"2026-05-06T22:03:15.307Z","avatar_url":"https://github.com/hugoalh.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deno NodeJS Transformer\n\n[**⚖️** MIT](./LICENSE.md)\n\n🔗\n[GitHub](https://github.com/hugoalh/deno-nodejs-transformer)\n[JSR](https://jsr.io/@hugoalh/deno-nodejs-transformer)\n\nTransform Deno code to NodeJS code.\n\nCurrently, this is a modified edition of the [Deno DNT](https://github.com/denoland/dnt) which:\n\n- Always force with ECMAScript module\n- Improve file structure\n- Unify configuration\n\n## ▶️ Begin - Deno\n\n- **[Deno](https://deno.land/)** \u003e= v2.5.2\n\n### 🛡️ Runtime Permissions\n\n- Environment Variable (`env`)\n  - *Resources*\n- File System - Read (`read`)\n  - *Resources*\n- File System - Write (`write`)\n  - *Resources*\n- Network (`net`)\n  - *Resources*\n\n### #️⃣ Sources\n\n- GitHub Raw\n  ```\n  https://raw.githubusercontent.com/hugoalh/deno-nodejs-transformer/{Tag}/mod.ts\n  ```\n- JSR\n  ```\n  jsr:@hugoalh/deno-nodejs-transformer[@{Tag}]\n  ```\n\n\u003e [!NOTE]\n\u003e - It is recommended to include tag for immutability.\n\u003e - These are not part of the public APIs hence should not be used:\n\u003e   - Benchmark/Test file (e.g.: `example.bench.ts`, `example.test.ts`).\n\u003e   - Entrypoint name or path include any underscore prefix (e.g.: `_example.ts`, `foo/_example.ts`).\n\u003e   - Identifier/Namespace/Symbol include any underscore prefix (e.g.: `_example`, `Foo._example`).\n\n### ⤵️ Entrypoints\n\n| **Name** | **Path** | **Description** |\n|:--|:--|:--|\n| `.` | `./mod.ts` | Default. |\n\n### 🧩 APIs\n\n- ```ts\n  function transform(options: TransformOptions): Promise\u003cvoid\u003e;\n  ```\n- ```ts\n  interface TransformOptions {\n    copyEntries?: readonly (string | RegExp | TransformCopyEntriesOptions)[];\n    entrypointsExecutable?: Record\u003cstring, string\u003e;\n    entrypointsScript?: Record\u003cstring, string\u003e;\n    fixDenoDNTModifications?: boolean;\n    generateDeclaration?: boolean;\n    generateDeclarationMap?: boolean;\n    importsMap?: string;\n    lib?: LibName[];\n    mappings?: SpecifierMappings;\n    metadata: Metadata;\n    outputDirectory?: string;\n    outputDirectoryPreEmpty?: boolean;\n    shims?: TransformShimOptions;\n    target?: ScriptTarget;\n    useTSLibHelper?: boolean;\n    workspace?: string;\n  }\n  ```\n\n\u003e [!NOTE]\n\u003e - For the full or prettier documentation, can visit via:\n\u003e   - [Deno CLI `deno doc`](https://docs.deno.com/runtime/reference/cli/doc/)\n\u003e   - [JSR](https://jsr.io/@hugoalh/deno-nodejs-transformer)\n\n### ✍️ Examples\n\n- ```ts\n  await transform({\n    copyEntries: [\n      /^LICENSE(?:[-\\._][^\\/\\\\]+)?\\.md$/i,\n      /^README(?:[-\\._][^\\/\\\\]+)?\\.md$/i\n    ],\n    entrypointsScript: {\n      \".\": \"./mod.ts\"\n    },\n    metadata: {\n      name: \"@hugoalh/deno-nodejs-transformer-test\",\n      version: \"0.8.0\",\n      description: \"Demo of Deno NodeJS Transformer.\",\n      keywords: [\n        \"test\"\n      ],\n      homepage: \"https://github.com/hugoalh/deno-nodejs-transformer#readme\",\n      bugs: {\n        url: \"https://github.com/hugoalh/deno-nodejs-transformer/issues\"\n      },\n      license: \"MIT\",\n      author: \"hugoalh\",\n      repository: {\n        type: \"git\",\n        url: \"git+https://github.com/hugoalh/deno-nodejs-transformer.git\"\n      },\n      private: false,\n      publishConfig: {\n        access: \"public\"\n      }\n    },\n    outputDirectory: \"dist/npm\",\n    outputDirectoryPreEmpty: true\n  });\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugoalh%2Fdeno-nodejs-transformer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugoalh%2Fdeno-nodejs-transformer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugoalh%2Fdeno-nodejs-transformer/lists"}