{"id":13740144,"url":"https://github.com/xtuc/babel-plugin-transform-scala-lambda","last_synced_at":"2025-04-30T11:15:20.143Z","repository":{"id":65989826,"uuid":"75487206","full_name":"xtuc/babel-plugin-transform-scala-lambda","owner":"xtuc","description":"Enable Scala lambda style","archived":false,"fork":false,"pushed_at":"2019-02-21T23:16:08.000Z","size":15,"stargazers_count":54,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-19T01:31:45.588Z","etag":null,"topics":["babel","javascript","lambda","scala"],"latest_commit_sha":null,"homepage":"","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/xtuc.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2016-12-03T16:58:47.000Z","updated_at":"2023-12-19T17:39:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"df0a3bee-1f80-4e91-b19a-2d899809474b","html_url":"https://github.com/xtuc/babel-plugin-transform-scala-lambda","commit_stats":{"total_commits":19,"total_committers":4,"mean_commits":4.75,"dds":0.368421052631579,"last_synced_commit":"322cab02d9f010508714a862ec4d10f4f3bec3e2"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtuc%2Fbabel-plugin-transform-scala-lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtuc%2Fbabel-plugin-transform-scala-lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtuc%2Fbabel-plugin-transform-scala-lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtuc%2Fbabel-plugin-transform-scala-lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xtuc","download_url":"https://codeload.github.com/xtuc/babel-plugin-transform-scala-lambda/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251687614,"owners_count":21627601,"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":["babel","javascript","lambda","scala"],"created_at":"2024-08-03T04:00:43.366Z","updated_at":"2025-04-30T11:15:20.113Z","avatar_url":"https://github.com/xtuc.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Alternative Programming Paradigms"],"readme":"# Transform Scala lambda\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/xtuc/babel-plugin-transform-scala-lambda.svg)](https://greenkeeper.io/)\n\n\u003e Enable Scala lambda style\n\n## Motivations\n\n* Allow a more consice syntax for simple things.\n* Scala is a great language (you should take a look at [Scala.js](http://www.scala-js.org))\n\n## Installation\n\n```sh\nnpm install --save-dev babel-plugin-transform-scala-lambda\n```\n\n## Usage\n\nAdd the following line to your .babelrc file:\n\n```json\n{\n    \"plugins\": [\"transform-scala-lambda\"]\n}\n```\n\n## Examples\n\n### Sum a list of numbers\n\n#### Using lambda style\n\n```js\nconst sum = [1, 1, 1].reduce(_ + _);\n```\n\n#### Without it\n\n```js\nconst sum = [1, 1, 1].reduce((a, b) =\u003e a + b);\n```\n\n### Get property from object\n\n#### Using lambda style\n\n```js\nconst users = [{ name: \"Sven\" }, { name: \"James\" }];\n\nconst userNames = users.map(_.name);\n```\n\n#### Without it\n\n```js\nconst users = [{ name: \"Sven\" }, { name: \"James\" }];\n\nconst userNames = users.map(u =\u003e u.name);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtuc%2Fbabel-plugin-transform-scala-lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxtuc%2Fbabel-plugin-transform-scala-lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtuc%2Fbabel-plugin-transform-scala-lambda/lists"}