{"id":21654620,"url":"https://github.com/localvoid/hoistr","last_synced_at":"2026-05-11T04:57:20.348Z","repository":{"id":47915673,"uuid":"234017496","full_name":"localvoid/hoistr","owner":"localvoid","description":"TypeScript transformer for hoisting expressions to the module scope","archived":false,"fork":false,"pushed_at":"2021-08-11T21:42:07.000Z","size":15,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T15:11:53.806Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/localvoid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-15T06:51:34.000Z","updated_at":"2021-11-01T10:51:06.000Z","dependencies_parsed_at":"2022-08-12T14:01:00.946Z","dependency_job_id":null,"html_url":"https://github.com/localvoid/hoistr","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/localvoid%2Fhoistr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localvoid%2Fhoistr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localvoid%2Fhoistr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localvoid%2Fhoistr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/localvoid","download_url":"https://codeload.github.com/localvoid/hoistr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244554121,"owners_count":20471173,"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-11-25T08:28:27.244Z","updated_at":"2026-05-11T04:57:15.314Z","avatar_url":"https://github.com/localvoid.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"TypeScript transformer for hoisting expressions to the module scope.\n\n```sh\n$ npm i --save-dev hoistr ts-hoistr\n```\n\nInput:\n\n```ts\nimport { hoist } from \"hoistr\";\n\nfunction A() {\n  return hoist({ value: 123 });\n}\n```\n\nOutput:\n\n```js\nconst ___hoisted_1 = { value: 123 };\n\nfunction A() {\n  return ___hoisted_1;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocalvoid%2Fhoistr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flocalvoid%2Fhoistr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocalvoid%2Fhoistr/lists"}