{"id":24499598,"url":"https://github.com/codewithkyle/twist","last_synced_at":"2025-07-20T09:36:47.982Z","repository":{"id":39613198,"uuid":"352155317","full_name":"codewithkyle/twist","owner":"codewithkyle","description":"Give your vanilla JS a little twist.","archived":false,"fork":false,"pushed_at":"2023-07-10T13:07:40.000Z","size":138,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T01:39:32.641Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/codewithkyle.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2021-03-27T19:07:54.000Z","updated_at":"2023-07-09T16:51:29.000Z","dependencies_parsed_at":"2022-09-15T21:41:30.101Z","dependency_job_id":null,"html_url":"https://github.com/codewithkyle/twist","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithkyle%2Ftwist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithkyle%2Ftwist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithkyle%2Ftwist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithkyle%2Ftwist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codewithkyle","download_url":"https://codeload.github.com/codewithkyle/twist/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248827085,"owners_count":21167815,"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":"2025-01-21T22:14:58.992Z","updated_at":"2025-04-14T05:32:58.788Z","avatar_url":"https://github.com/codewithkyle.png","language":"JavaScript","readme":"# Twist\n\nA simple build tool for wrangling your ES Module static import paths.\n\n## Install\n\n```bash\nnpm i -S @codewithkyle/twist\n```\n\n## Usage\n\nBy default we will look for JavaScript/TypeScript files in the `src/` directory and will output to the `public/js` directory. If you do not provide a `--config` flag we will use the default options based on the transpiler you've selected.\n\nYou can also provide the `--path` flag if you need to remap your imports to a CDN/external URL.\n\n```bash\ntwist --src=./path-to/source --out=./public/js --type=esbuild --config=./esbuild.config.js --path='https://cdn.example.com/'\n```\n\nIf you are using dynamic imports you can add the `--dynamic` flag.\n\n### Build Types\n\n-   `none` the source code (JavaScript) will only be scrubbed \u0026 relocated.\n-   `tsc` the source code will be transpiled using the `typescript` package before being scrubbed and relocated.\n-   `esbuild` the source code will be transpiled using the `esbuild` package before being scrubbed and relocated.\n-   `babel` the source code will be transpired using the `@babel/core` pacakge before being scrubbed and relocated.\n\n\u003e **Note:** this library uses peer dependencies. You must install `typescript`, `esbuild`, or `@babel/core` to transpile the source code.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithkyle%2Ftwist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodewithkyle%2Ftwist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithkyle%2Ftwist/lists"}