{"id":21245263,"url":"https://github.com/jstransformers/jstransformer-babel","last_synced_at":"2025-07-10T22:31:00.502Z","repository":{"id":27755846,"uuid":"31243958","full_name":"jstransformers/jstransformer-babel","owner":"jstransformers","description":"Babel support for JSTransformers.","archived":false,"fork":false,"pushed_at":"2020-04-30T22:55:45.000Z","size":72,"stargazers_count":4,"open_issues_count":4,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-09T19:02:32.012Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://npm.im/jstransformer-babel","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/jstransformers.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-24T04:03:25.000Z","updated_at":"2020-04-26T03:12:01.000Z","dependencies_parsed_at":"2022-09-03T05:11:34.893Z","dependency_job_id":null,"html_url":"https://github.com/jstransformers/jstransformer-babel","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstransformers%2Fjstransformer-babel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstransformers%2Fjstransformer-babel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstransformers%2Fjstransformer-babel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstransformers%2Fjstransformer-babel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jstransformers","download_url":"https://codeload.github.com/jstransformers/jstransformer-babel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224964642,"owners_count":17399435,"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-21T01:49:41.042Z","updated_at":"2024-11-21T01:49:41.538Z","avatar_url":"https://github.com/jstransformers.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jstransformer-babel\n\n[Babel](http://babeljs.io) support for [JSTransformers](http://github.com/jstransformers).\n\n[![Build Status](https://img.shields.io/travis/jstransformers/jstransformer-babel/master.svg)](https://travis-ci.org/jstransformers/jstransformer-babel)\n[![Coverage Status](https://img.shields.io/codecov/c/github/jstransformers/jstransformer-babel/master.svg)](https://codecov.io/gh/jstransformers/jstransformer-babel)\n[![Dependency Status](https://img.shields.io/david/jstransformers/jstransformer-babel/master.svg)](http://david-dm.org/jstransformers/jstransformer-babel)\n[![NPM version](https://img.shields.io/npm/v/jstransformer-babel.svg)](https://www.npmjs.org/package/jstransformer-babel)\n\n## Installation\n\n    npm install jstransformer-babel\n\n## API\n\n```js\nvar babel = require('jstransformer')(require('jstransformer-babel'))\n\nvar src = 'let a = 0'\nvar transformed = babel.render(src, {presets: ['es2015']})\n//=\u003e '\"use strict\";\\n\\nvar a = 0;'\n```\n\nOnly `render` method is implemented, which means that through the JSTransformer architecture all `render*` APIs are available.\n\nPassing options to Babel is supported as well, and all options unsupported by Babel are filtered out before passing them to Babel.\n\nIn babel@6 (jstransformer-babel@2), the default of transpiling from ES2015 is removed. As a result, in order to transpile from ES2015 just like in jstransformer-babel@2, pass in `['es2015']` as the value of the `presets` option, just like in the example above. If that is too laborious, you can look into using a `.babelrc` file.\n\nBabel configuration files like `.babelrc` are also supported. They can only be detected if you use the `renderFile*` APIs or manually pass in a `filename` option.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjstransformers%2Fjstransformer-babel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjstransformers%2Fjstransformer-babel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjstransformers%2Fjstransformer-babel/lists"}