{"id":24498194,"url":"https://github.com/nyxb/dynot","last_synced_at":"2026-05-19T01:34:06.775Z","repository":{"id":163770984,"uuid":"638717646","full_name":"nyxb/dynot","owner":"nyxb","description":"🦖⚡️ Boost your Node.js runtime with TypeScript and ESM support!","archived":false,"fork":false,"pushed_at":"2023-05-12T14:28:51.000Z","size":1230,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-10T04:53:20.858Z","etag":null,"topics":["esm","nodejs","runtime","support","typescript"],"latest_commit_sha":null,"homepage":"https://nyxb.xyz","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nyxb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":["nyxb"]}},"created_at":"2023-05-10T00:42:22.000Z","updated_at":"2024-12-15T08:41:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"4f7d4388-17fd-4604-beaa-3813e5222001","html_url":"https://github.com/nyxb/dynot","commit_stats":null,"previous_names":["nyxblabs/dynot"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/nyxb/dynot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyxb%2Fdynot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyxb%2Fdynot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyxb%2Fdynot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyxb%2Fdynot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nyxb","download_url":"https://codeload.github.com/nyxb/dynot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyxb%2Fdynot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33197646,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["esm","nodejs","runtime","support","typescript"],"created_at":"2025-01-21T22:10:47.114Z","updated_at":"2026-05-19T01:34:06.757Z","avatar_url":"https://github.com/nyxb.png","language":"TypeScript","funding_links":["https://github.com/sponsors/nyxb"],"categories":[],"sub_categories":[],"readme":"[![cover][cover-src]][cover-href]\n[![npm version][npm-version-src]][npm-version-href] \n[![npm downloads][npm-downloads-src]][npm-downloads-href] \n[![bundle][bundle-src]][bundle-href] \n[![License][license-src]][license-href]\n\n\u003e 🦖⚡️ Boost your Node.js runtime with TypeScript and ESM support!\n\n## ✨ Features\n\n- 🌊 Smooth TypeScript and ESM syntax integration\n- 🔗 Seamless ESM and CommonJS interoperability\n- ⚡ Synchronous API as a `require` alternative\n- 💪 Super lightweight with zero dependencies\n- 🧠 Clever syntax detection to avoid unnecessary transformations\n- 💾 CommonJS cache integration\n- 🗄️ Filesystem transpile hard cache\n- 🏎️ V8 compile cache\n- 🔍 Custom resolve alias\n\n## 🛠️ Usage\n\n### 📦 Scripted\n\n```ts\nconst dynotti = require('dynot')(__filename)\n\ndynot('./path/to/file.ts')\n```\n\nYou can also pass options as a second argument:\n\n```ts\nconst dynot = require('dynot')(__filename, { debug: true })\n```\n\n### 🖥️ CLI\n\n```bash\ndynot index.ts\n# or npx dynot index.ts\n```\n\n### 📝 Register require hook\n\n```bash\nnode -r dynot/register index.ts\n```\n\nAlternatively, you can register `dynot` as a require hook programmatically:\n\n```ts\nconst dynot = require('dynot')()\n\nconst unregister = dynot.register()\n```\n\n## ⚙️ Options\n\n### `debug` 🐞\n\n- Type: Boolean\n- Default: `false`\n- Environment Variable: `DYNOT_DEBUG`\n\nEnable debug mode to see which files are transpiled\n\n### `cache` 💽\n\n- Type: Boolean | String\n- Default: `true`\n- Environment Variable: `DYNOT_CACHE`\n\nToggle transpile cache\n\nIf set to `true`, it will use `node_modules/.cache/dynot` (if exists) or `{TMP_DIR}/node-dynot`\n\n### `esmResolve` 🌀\n\n- Type: Boolean | String\n- Default: `false`\n- Environment Variable: `DYNOT_ESM_RESOLVE`\n\nActivate esm resolution algorithm to support `import` condition.\n\n### `transform` 🔄\n\n- Type: Function\n- Default: Babel (lazy loaded)\n\nSpecify a transform function. Check [src/babel](./src/babel.ts) for more details.\n\n### `sourceMaps` 🗺️\n\n- Type: Boolean\n- Default `false`\n- Environment Variable: `DYNOT_SOURCE_MAPS`\n\nAdd inline source map to transformed source for improved debugging.\n\n### `interopDefault` 🧩\n\n- Type: Boolean\n- Default: `false`\n\nReturn the `.default` export of a module at the top-level.\n\n### `alias` 🏷️\n\n- Type: Object\n- Default: -\n- Environment Variable: `DYNOT_ALIAS`\n\nDefine a custom alias map to resolve ids.\n\n### `nativeModules` 🌐\n\n- Type: Array\n- Default: ['typescript`]\n- Environment Variable: `DYNOT_NATIVE_MODULES`\n\nSpecify a list of modules (within `node_modules`) to always use native require for them.\n\n### `transformModules` 🛠️\n\n- Type: Array\n- Default: []\n- Environment Variable: `DYNOT_TRANSFORM_MODULES`\n\nList modules (within `node_modules`) to transform them regardless of syntax.\n\n## 🌱 Development\n\n🐙 Clone this repository\n🔧 Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable`\n📦 Install dependencies using [nyxi](https://github.com/nyxblabs/nyxi) 🧙 Always right package manager\n🏃 Run `nyxr dev`\n🏃 Run `nyxr dynot ./test/path/to/file.ts`\n\n## 📜 License\n\n[MIT](./LICENSE) - Made with 💞\n\n\u003c!-- Badges --\u003e\n\n[npm-version-src]: https://img.shields.io/npm/v/dynot?style=flat\u0026colorA=18181B\u0026colorB=14F195\n[npm-version-href]: https://npmjs.com/package/dynot\n[npm-downloads-src]: https://img.shields.io/npm/dm/dynot?style=flat\u0026colorA=18181B\u0026colorB=14F195\n[npm-downloads-href]: https://npmjs.com/package/dynot\n[bundle-src]: https://img.shields.io/bundlephobia/minzip/dynot?style=flat\u0026colorA=18181B\u0026colorB=14F195\n[bundle-href]: https://bundlephobia.com/result?p=dynot\n[license-src]: https://img.shields.io/github/license/nyxblabs/dynot.svg?style=flat\u0026colorA=18181B\u0026colorB=14F195\n[license-href]: https://github.com/nyxblabs/dynot/blob/main/LICENSE\n\n\u003c!-- Cover --\u003e\n[cover-src]: https://raw.githubusercontent.com/nyxblabs/dynot/main/.github/assets/cover-github-dynot.png\n[cover-href]: https://💻nyxb.ws\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnyxb%2Fdynot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnyxb%2Fdynot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnyxb%2Fdynot/lists"}