{"id":30066295,"url":"https://github.com/nlibjs/esmify","last_synced_at":"2026-01-20T17:58:00.678Z","repository":{"id":37010199,"uuid":"488839424","full_name":"nlibjs/esmify","owner":"nlibjs","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-24T18:06:06.000Z","size":916,"stargazers_count":0,"open_issues_count":10,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-24T23:49:02.160Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nlibjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"gjbkz","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2022-05-05T05:10:15.000Z","updated_at":"2025-05-21T17:33:29.000Z","dependencies_parsed_at":"2023-09-26T07:49:30.581Z","dependency_job_id":"59eec759-302b-4893-ad53-f862f5823355","html_url":"https://github.com/nlibjs/esmify","commit_stats":{"total_commits":218,"total_committers":4,"mean_commits":54.5,"dds":"0.33944954128440363","last_synced_commit":"911224c2506056ec1123ef110da15acefccb8ea2"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/nlibjs/esmify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlibjs%2Fesmify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlibjs%2Fesmify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlibjs%2Fesmify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlibjs%2Fesmify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nlibjs","download_url":"https://codeload.github.com/nlibjs/esmify/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlibjs%2Fesmify/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269383205,"owners_count":24408157,"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","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-08-08T07:28:38.098Z","updated_at":"2026-01-20T17:58:00.664Z","avatar_url":"https://github.com/nlibjs.png","language":"TypeScript","funding_links":["https://github.com/sponsors/gjbkz"],"categories":[],"sub_categories":[],"readme":"# @nlib/esmify\n\n[![Test](https://github.com/nlibjs/esmify/actions/workflows/test.yml/badge.svg)](https://github.com/nlibjs/esmify/actions/workflows/test.yml)\n[![codecov](https://codecov.io/gh/nlibjs/esmify/branch/master/graph/badge.svg)](https://codecov.io/gh/nlibjs/esmify)\n\nA command line tool converts tsc output to ESM modules.\n\n## What does it do?\n\nAssume you have file1.js and file2.js.\n\n```javascript\n// file1.js\nimport {v2} from './file2';\nconst f2 = import('./file2');\n\n// file2.js\nimport {external} from '../extenal/file';\nimport {v1} from './file1';\nconst f1 = import('./file1');\n```\n\nesmify disambiguates import sources in the code.\n\n```javascript\n// file1.js\nimport {v2} from './file2.js';\nconst f2 = import('./file2.js');\n\n// file2.js\nimport {external} from '../extenal/file.js';\nimport {v1} from './file1.js';\nconst f1 = import('./file1.js');\n```\n\n## Usage\n\n```\nUsage: @nlib/esmify [options] \u003cpatterns...\u003e\n\nArguments:\n  patterns         File patterns passed to fast-glob\n\nOptions:\n  --cwd \u003ccwd\u003e      A path to the directory passed to fast-glob.\n  --keepSourceMap  If it exists, esmify won't remove sourcemaps.\n  --noMjs          If it exists, esmify won't change *.js to *.mjs.\n  -V, --version    output the version number\n  -h, --help       display help for command\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlibjs%2Fesmify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnlibjs%2Fesmify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlibjs%2Fesmify/lists"}