{"id":28075672,"url":"https://github.com/vadimdemedes/buble-register","last_synced_at":"2025-05-13T00:59:09.807Z","repository":{"id":57190834,"uuid":"95252192","full_name":"vadimdemedes/buble-register","owner":"vadimdemedes","description":"Bublé require hook","archived":false,"fork":false,"pushed_at":"2017-10-21T12:24:11.000Z","size":6,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-06T12:37:46.202Z","etag":null,"topics":["buble","transpilation"],"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/vadimdemedes.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}},"created_at":"2017-06-23T19:58:36.000Z","updated_at":"2019-04-06T02:27:41.000Z","dependencies_parsed_at":"2022-09-15T15:42:27.865Z","dependency_job_id":null,"html_url":"https://github.com/vadimdemedes/buble-register","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vadimdemedes%2Fbuble-register","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vadimdemedes%2Fbuble-register/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vadimdemedes%2Fbuble-register/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vadimdemedes%2Fbuble-register/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vadimdemedes","download_url":"https://codeload.github.com/vadimdemedes/buble-register/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253490462,"owners_count":21916663,"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":["buble","transpilation"],"created_at":"2025-05-13T00:59:09.332Z","updated_at":"2025-05-13T00:59:09.793Z","avatar_url":"https://github.com/vadimdemedes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# buble-register [![Build Status](https://travis-ci.org/vadimdemedes/buble-register.svg?branch=master)](https://travis-ci.org/vadimdemedes/buble-register)\n\n\u003e [Bublé](https://www.npmjs.com/package/buble) require hook.\n\nBased on the excellent [babel-register](https://www.npmjs.com/package/babel-register) and adapted for Bublé.\n\n\n## Install\n\n```\n$ npm install --save buble-register\n```\n\n\n## Usage\n\n```js\nrequire('buble-register');\n```\n\nAll subsequent files required with the extensions `.js`, `.jsx`, `.es6` and `.es` will be transformed by Bublé.\n\n\n## API\n\n### bubleRegister([options])\n\n#### options\n\n##### extensions\n\nType: `Array`\u003cbr\u003e\nDefault: `['.js', '.jsx', '.es6', '.es']`\n\nExtensions to install a require hook for.\n\n##### only\n##### ignore\n\nType: `String`, `Array\u003cString, RegExp\u003e`, `Boolean`, `RegExp`, `Function`\n\nPatterns to ignore or exclusively include for compiling.\n\n```js\nconst bubleRegister = require('buble-register');\n\nbubleRegister({\n\tonly: 'a.js'\n});\n\nbubleRegister({\n\tonly: ['a.js', 'b.js']\n});\n\n// override `node_modules` ignoring\nbubleRegister({\n\tonly: false\n});\n\nbubleRegister({\n\tonly: /regex/\n});\n\nbubleRegister({\n\tonly: filename =\u003e {\n\t\tif (filename === '/path/to/es6-file.js') {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}\n});\n```\n\n##### cache\n\nType: `Boolean`\u003cbr\u003e\nDefault: `true`\n\nEnable or disable caching of compiled sources.\n\n\n## Environment variables\n\nBy default `buble-register` saves to a file in temporary directory.\n\n**BUBLE_CACHE_PATH**\n\nSpecify a different cache location.\n\n```\nBUBLE_CACHE_PATH=/path/to/cache.json node with-register.js\n```\n\n**BUBLE_DISABLE_CACHE**\n\nDisable the cache.\n\n```\nBUBLE_DISABLE_CACHE=1 node with-register.js\n```\n\n## License\n\nMIT © [Vadim Demedes](https://github.com/vadimdemedes)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvadimdemedes%2Fbuble-register","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvadimdemedes%2Fbuble-register","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvadimdemedes%2Fbuble-register/lists"}