{"id":20514094,"url":"https://github.com/webreflection/modulestrap","last_synced_at":"2025-04-14T00:06:06.377Z","repository":{"id":65993237,"uuid":"206658324","full_name":"WebReflection/modulestrap","owner":"WebReflection","description":"A basic JS module bootstrap","archived":false,"fork":false,"pushed_at":"2023-07-26T15:30:09.000Z","size":29,"stargazers_count":26,"open_issues_count":1,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-12-31T15:57:44.633Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WebReflection.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-09-05T21:12:55.000Z","updated_at":"2024-09-27T21:21:11.000Z","dependencies_parsed_at":"2024-02-17T08:43:48.999Z","dependency_job_id":null,"html_url":"https://github.com/WebReflection/modulestrap","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebReflection%2Fmodulestrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebReflection%2Fmodulestrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebReflection%2Fmodulestrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebReflection%2Fmodulestrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WebReflection","download_url":"https://codeload.github.com/WebReflection/modulestrap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232797486,"owners_count":18577981,"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-15T21:14:44.280Z","updated_at":"2025-01-06T23:08:27.116Z","avatar_url":"https://github.com/WebReflection.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# modulestrap\n\n\u003csup\u003e**Social Media Photo by [Danielle MacInnes](https://unsplash.com/@dsmacinnes) on [Unsplash](https://unsplash.com/)**\u003c/sup\u003e\n\nA basic JS module bootstrap: `npx modulestrap project-name`\n\n- - -\n\nThe goal of this binary module is to bootstrap any JS module that would like to land on browsers, as well as NodeJS.\n\n```\nmodulestrap project-name\n  --babel      # to transpile for older browsers\n  --cover      # to include coverage tools\n  --node       # to create a NodeJS only module\n  --ungap      # to include polyfills\n  --force      # to overwrite existent projects\n  --ucjs       # use ucjs instead of ascjs\n  --no-default # to avoid exporting module.default\n  --no-interop # alias for --no-default\n```\n\nAccordingly with the passed flags, the binary will create _project-name_ and initialize it with most common tools to create dual modules.\n\n## Example / How to\n\n```sh\nnpx modulestrap my-project --babel\ncd my-project\ncode .\n# write your module in ./esm/ folder\n# the `index.js` is already there\n# once you've done\nnpm run build\n```\n\nAbove procedure will create all files for both CommonJS and ESM module + it will transpile to `index.js` and minify to `min.js` for browsers.\n\nIt is suggested to write a _test_ too, either via `--cover` flag, or manually.\n\nAt that point, you can publish to npm your module.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebreflection%2Fmodulestrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebreflection%2Fmodulestrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebreflection%2Fmodulestrap/lists"}