{"id":19032719,"url":"https://github.com/joutvhu/babel-plugin-transform-node-module","last_synced_at":"2025-02-21T20:28:34.554Z","repository":{"id":118392732,"uuid":"180594079","full_name":"joutvhu/babel-plugin-transform-node-module","owner":"joutvhu","description":"This plugin transforms ES2015 modules to Node.js module system.","archived":false,"fork":false,"pushed_at":"2019-04-20T03:55:40.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T05:04:21.360Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joutvhu.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,"publiccode":null,"codemeta":null}},"created_at":"2019-04-10T14:01:24.000Z","updated_at":"2019-04-20T03:55:41.000Z","dependencies_parsed_at":"2023-07-24T09:33:35.018Z","dependency_job_id":null,"html_url":"https://github.com/joutvhu/babel-plugin-transform-node-module","commit_stats":{"total_commits":7,"total_committers":2,"mean_commits":3.5,"dds":0.2857142857142857,"last_synced_commit":"2df9ff318d80388daa8c9a7054c3ffdade192156"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Fbabel-plugin-transform-node-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Fbabel-plugin-transform-node-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Fbabel-plugin-transform-node-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Fbabel-plugin-transform-node-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joutvhu","download_url":"https://codeload.github.com/joutvhu/babel-plugin-transform-node-module/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240082874,"owners_count":19745307,"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-08T21:30:44.342Z","updated_at":"2025-02-21T20:28:34.535Z","avatar_url":"https://github.com/joutvhu.png","language":"JavaScript","readme":"# babel-plugin-transform-node-module\nThis plugin transforms ES2015 modules to Node.js module system.\n\n## Installation\n\n```bash\nnpm install --save-dev babel-plugin-transform-node-module\n```\n\n## Usage\n\n### Via `.babelrc` (Recommended)\n\n**.babelrc**\n\n```json\n{\n  \"plugins\": [\"transform-node-module\"]\n}\n```\n\n#### Options\n\n- *`kind`* - A string value, specifying the type of variable used to import is \"const\", \"let\" or \"var\"..\n\n```json\n{\n  \"plugins\": [\n    [\"transform-node-module\", { \"kind\": \"const\" }]\n  ]\n}\n```\n\n- *`module`* - A boolean value, that if true will use `module.exports` instead of `exports`.\n\n```json\n{\n  \"plugins\": [\n    [\"transform-node-module\", { \"module\": true }]\n  ]\n}\n```\n\n### Via CLI\n\n```bash\nbabel --plugins transform-node-module script.js\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoutvhu%2Fbabel-plugin-transform-node-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoutvhu%2Fbabel-plugin-transform-node-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoutvhu%2Fbabel-plugin-transform-node-module/lists"}