{"id":13739526,"url":"https://github.com/megawac/babel-plugin-ramda","last_synced_at":"2025-05-16T07:04:21.149Z","repository":{"id":36027925,"uuid":"40324031","full_name":"megawac/babel-plugin-ramda","owner":"megawac","description":"Easy :ram: modular builds","archived":false,"fork":false,"pushed_at":"2023-03-01T20:09:52.000Z","size":599,"stargazers_count":311,"open_issues_count":16,"forks_count":30,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-06T11:20:43.853Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/megawac.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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":"2015-08-06T19:53:52.000Z","updated_at":"2025-02-04T16:02:14.000Z","dependencies_parsed_at":"2024-04-17T11:45:15.998Z","dependency_job_id":null,"html_url":"https://github.com/megawac/babel-plugin-ramda","commit_stats":{"total_commits":85,"total_committers":21,"mean_commits":"4.0476190476190474","dds":0.6470588235294117,"last_synced_commit":"1b600651fedbf15c8f7d21a42a2414fec90497bc"},"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megawac%2Fbabel-plugin-ramda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megawac%2Fbabel-plugin-ramda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megawac%2Fbabel-plugin-ramda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megawac%2Fbabel-plugin-ramda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/megawac","download_url":"https://codeload.github.com/megawac/babel-plugin-ramda/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253154969,"owners_count":21862621,"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-08-03T04:00:34.838Z","updated_at":"2025-05-16T07:04:21.129Z","avatar_url":"https://github.com/megawac.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Module Resolution"],"readme":"babel-plugin-ramda [![Build Status](https://travis-ci.org/megawac/babel-plugin-ramda.svg?branch=master)](https://travis-ci.org/megawac/babel-plugin-ramda)\n==============\n\nThis plugin is a transform to remove unused ramda dependencies, without forcing the user to cherry pick methods manually. This lets you use ramda naturally (aka as documented) without worrying about bundling parts you're not using.\n\nSee also [`babel-plugin-lodash`](https://github.com/megawac/babel-plugin-lodash).\n\n#### Example\n\nConverts\n\n```js\nimport R, {map} from 'ramda';\n\nmap(R.add(1), [1, 2, 3]);\n```\n\nRoughly to \n\n```js\nimport add from 'ramda/src/add';\nimport map from 'ramda/src/map';\n\nmap(add(1), [1, 2, 3]);\n```\n\n\n#### Limitations\n\n- You must be using ES6 imports (both specifiers and default work) to load ramda.\n\n#### FAQ\n\n\u003e I receive `TypeError: The plugin \"ramda\" didn’t export a Plugin instance`\u003cbr\u003e\n\u003e or, can I use this plugin with Babel v5?\n\nBabel v5 is no longer supported. Use [v0.1.2](https://github.com/megawac/babel-plugin-ramda/releases/tag/v0.1.2) for support.\n\n#### Usage\n\n###### Via `.babelrc` (Recommended)\n\n```json\n{\n  \"plugins\": [\"ramda\"]\n}\n```\n\nor\n```json\n{\n  \"plugins\": [\n    [\"ramda\", {\n      \"useES\": true\n    }]\n  ]\n}\n```\n\nto use the new `ramda/es/` path for imports, which is available since Ramda 0.25. This is recommended as it uses ES modules rather than CommonJS. It defaults to `ramda/src/` when omitted.\n\n###### Via CLI\n\n```sh\n$ babel --plugins ramda script.js\n```\n\n###### Via Node API\n\n```javascript\nrequire(\"babel-core\").transform(\"code\", {\n  plugins: [\"ramda\"]\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmegawac%2Fbabel-plugin-ramda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmegawac%2Fbabel-plugin-ramda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmegawac%2Fbabel-plugin-ramda/lists"}