{"id":15409557,"url":"https://github.com/bradymholt/ts-progressive-convert-namespace-modules","last_synced_at":"2026-03-16T12:04:00.502Z","repository":{"id":54081763,"uuid":"205266210","full_name":"bradymholt/ts-progressive-convert-namespace-modules","owner":"bradymholt","description":"Example of progression conversion from TypeScript namespaces to modules","archived":false,"fork":false,"pushed_at":"2021-03-09T16:47:38.000Z","size":128,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-07T17:24:41.670Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bradymholt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-29T23:16:20.000Z","updated_at":"2023-08-26T16:20:18.000Z","dependencies_parsed_at":"2022-08-13T06:31:36.939Z","dependency_job_id":null,"html_url":"https://github.com/bradymholt/ts-progressive-convert-namespace-modules","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradymholt%2Fts-progressive-convert-namespace-modules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradymholt%2Fts-progressive-convert-namespace-modules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradymholt%2Fts-progressive-convert-namespace-modules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradymholt%2Fts-progressive-convert-namespace-modules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bradymholt","download_url":"https://codeload.github.com/bradymholt/ts-progressive-convert-namespace-modules/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240384288,"owners_count":19792970,"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":[],"created_at":"2024-10-01T16:40:36.766Z","updated_at":"2025-12-25T12:26:22.470Z","avatar_url":"https://github.com/bradymholt.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ts-progressive-convert-namespace-modules\n\nThis repository demonstrates how to progressively convert a TypeScript library that uses global namespaces over to using modules.\n\nThe [src/entry.m.ts](https://github.com/bradymholt/ts-progressive-convert-namespace-modules/blob/master/src/entry.m.ts) file is the main [entry point](https://github.com/bradymholt/ts-progressive-convert-namespace-modules/blob/master/webpack.config.js#L6) in the webpack config. This file calls namespaced code and also imports\na module shim that runs namcespaced code. Progressively, namespaced code can be shimmied and then the namespaced code eventually folded directly into the modules.\n\nThe npm script \"bundle\" builds the namespace project which emits the outFile `dist/script.js`. This file is referenced in the [index.html](https://github.com/bradymholt/ts-progressive-convert-namespace-modules/blob/master/index.html) file before the webpack bundle is loaded.\n\n## Usage\n\n1. Run `npm install`\n1. Run `npm run start`\n1. Open http://localhost:5000 in a browser\n1. Open devtools console and you should see:\n\n```\nbite bite bite bite\nbark bark bark bark\nooh-ooh-ooh-eee-eee\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradymholt%2Fts-progressive-convert-namespace-modules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbradymholt%2Fts-progressive-convert-namespace-modules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradymholt%2Fts-progressive-convert-namespace-modules/lists"}