{"id":15675061,"url":"https://github.com/azu/node-browser-polyfill-gap","last_synced_at":"2025-05-06T23:41:20.051Z","repository":{"id":66143534,"uuid":"99359498","full_name":"azu/node-browser-polyfill-gap","owner":"azu","description":"The gap issue between Node.js and Browser polyfills.","archived":false,"fork":false,"pushed_at":"2018-12-25T03:23:00.000Z","size":92,"stargazers_count":15,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T04:04:53.749Z","etag":null,"topics":["browser","compatible","issue","nodejs","status"],"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/azu.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},"funding":{"github":"azu"}},"created_at":"2017-08-04T16:06:40.000Z","updated_at":"2024-12-12T23:56:26.000Z","dependencies_parsed_at":"2023-02-22T01:15:17.319Z","dependency_job_id":null,"html_url":"https://github.com/azu/node-browser-polyfill-gap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azu%2Fnode-browser-polyfill-gap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azu%2Fnode-browser-polyfill-gap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azu%2Fnode-browser-polyfill-gap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azu%2Fnode-browser-polyfill-gap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/azu","download_url":"https://codeload.github.com/azu/node-browser-polyfill-gap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252788376,"owners_count":21804280,"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":["browser","compatible","issue","nodejs","status"],"created_at":"2024-10-03T15:55:38.251Z","updated_at":"2025-05-06T23:41:20.027Z","avatar_url":"https://github.com/azu.png","language":"JavaScript","funding_links":["https://github.com/sponsors/azu"],"categories":[],"sub_categories":[],"readme":"# Node.js and Browser polyfill gap\n\n[webpack](https://github.com/webpack/webpack \"webpack\") and [browserify](https://github.com/substack/node-browserify \"browserify\") user polyfill libraries for in-browser usage.\n\nFor example, webpack and browserify alias `assert` module to [commonjs-assert](https://github.com/defunctzombie/commonjs-assert \"commonjs-assert\") in browser-env.\n\n## polyfill library\n\n- webpack:\n  - [webpack/node-libs-browser: The node core libs for in browser usage.](https://github.com/webpack/node-libs-browser \"webpack/node-libs-browser: The node core libs for in browser usage.\")\n- browserify:\n  - [substack/browserify-handbook: how to build modular applications with browserify](https://github.com/substack/browserify-handbook#builtins)\n  - [node-browserify/builtins.js at master · substack/node-browserify](https://github.com/substack/node-browserify/blob/master/lib/builtins.js)\n  \n## Issues\n\n- webpack: [Incompatibility between Node.js core libs and webpack's lib · Issue #78 · webpack/node-libs-browser](https://github.com/webpack/node-libs-browser/issues/78 \"Incompatibility between Node.js core libs and webpack\u0026#39;s lib · Issue #78 · webpack/node-libs-browser\")\n\n## Purpose\n\nRecently, Node.js have upgraded own core module like `assert`. But, polyfill module like [commonjs-assert](https://github.com/defunctzombie/commonjs-assert \"commonjs-assert\") does not follow the breaking change.\n\nThis repository aim to collect the gap issue between Node.js and Browser polyfills.\n\n## Test Suite\n\n### Node.js \u003e= 10.0.0 [![Build Status](https://travis-ci.org/azu/node-browser-polyfill-gap.svg?branch=master)](https://travis-ci.org/azu/node-browser-polyfill-gap)\n\n    npm run test:node \n\n### webpack [CI Test Status](https://travis-ci.org/azu/node-browser-polyfill-gap)\n\n    npm run test:webpack \n\n### browserify [CI Test Status](https://travis-ci.org/azu/node-browser-polyfill-gap)\n\n    npm run test:browserify\n\n## Gap list\n\n|    Node.js     |               Browser polyfill               |                  Issue                   | Link                                     |\n| :------------: | :--------------------------------------: | :--------------------------------------: | ---------------------------------------- |\n|     assert     | [defunctzombie/commonjs-assert](https://github.com/defunctzombie/commonjs-assert) | Error code and Error message are different | [Issue](https://github.com/nodejs/node/issues/13937), [Article](https://medium.com/the-node-js-collection/node-js-errors-changes-you-need-to-know-about-dc8c82417f65) |\n|                |                                          | `assert.deepEqual` does't support `Map`, `Set`, `Iterator` etc... | [Issue](https://github.com/nodejs/node/issues/2309), [Document](https://nodejs.org/api/assert.html#assert_assert_deepequal_actual_expected_message), [Release](https://nodejs.org/en/blog/release/v8.0.0/) |\n|                |                                          | `require(\"assert\").strict` | [Docs](https://nodejs.org/api/assert.html#assert_strict_mode), [Release](https://nodejs.org/en/blog/release/v9.9.0/) |\n|                |                                          | [`assert.rejects()`](https://nodejs.org/api/assert.html#assert_assert_rejects_block_error_message) | [Release](https://nodejs.org/en/blog/release/v10.0.0/) |\n|                |                                          | [`assert.doesNotReject()`](https://nodejs.org/api/assert.html#assert_assert_doesnotreject_block_error_message) | [Release](https://nodejs.org/en/blog/release/v10.0.0/) |\n|                |                                          | Compatible issue with `assert.fail()`, `assert.ok()`, and `assert.ifError()`|  No arguments behavior. [Release](https://nodejs.org/en/blog/release/v10.0.0/) |\n|     buffer     | [feross/buffer](https://github.com/feross/buffer) |                   ---                    |                                          |\n| child_process  |                   ---                    |                   ---                    |                                          |\n|    cluster     |                   ---                    |                   ---                    |                                          |\n|    console     | [Raynos/console-browserify](https://github.com/Raynos/console-browserify) |                   ---                    |                                          |\n|   constants    | [juliangruber/constants-browserify](https://github.com/juliangruber/constants-browserify) |                   ---                    |                                          |\n|     crypto     | [crypto-browserify/crypto-browserify](https://github.com/crypto-browserify/crypto-browserify) |                   ---                    |                                          |\n|     dgram      |                   ---                    |                   ---                    |                                          |\n|      dns       |                   ---                    |                   ---                    |                                          |\n|     domain     | [bevry/domain-browser](https://github.com/bevry/domain-browser) |                   ---                    |                                          |\n|     events     | [Gozala/events](https://github.com/Gozala/events) | [`eventNames`](https://nodejs.org/api/events.html#events_emitter_eventnames) | [Issue](https://github.com/Gozala/events/pull/32) |\n|                |                                          | [`getMaxListeners`](https://nodejs.org/api/events.html#events_emitter_getmaxlisteners) | [Issue](https://github.com/Gozala/events/pull/32) |\n|                |                                          | [`prependListener`](https://nodejs.org/api/events.html#events_emitter_prependlistener_eventname_listener) | [Issue](https://github.com/Gozala/events/pull/32) |\n|                |                                          | [`prependOnceListener`](https://nodejs.org/api/events.html#events_emitter_prependoncelistener_eventname_listener) | [Issue](https://github.com/Gozala/events/pull/32) |\n|                |                                          | `off` | [Issue](https://github.com/nodejs/node/pull/17156) |\n|       fs       |                   ---                    |                   ---                    |                                          |\n|      http      | [jhiesey/stream-http](https://github.com/jhiesey/stream-http) |                   ---                    |                                          |\n|     https      | [substack/https-browserify](https://github.com/substack/https-browserify) |                   ---                    |                                          |\n|     module     |                   ---                    |                   ---                    |                                          |\n|      net       |                   ---                    |                   ---                    |                                          |\n|       os       | [CoderPuppy/os-browserify](https://github.com/CoderPuppy/os-browserify) | [os.constants](https://nodejs.org/api/os.html#os_os_constants \"os.constants\") |                                          |\n|      path      | [substack/path-browserify](https://github.com/substack/path-browserify) | [path.posix](https://nodejs.org/api/path.html#path_path_posix \"path.posix\") | [Issue](https://github.com/substack/path-browserify/issues/11 \"Update to use newer node path code · Issue #11 · substack/path-browserify\") |\n|                |                                          | [path.parse(path)](https://nodejs.org/docs/latest/api/path.html#path_path_parse_path \"path.parse(path)\") | [Issue](https://github.com/substack/path-browserify/issues/2) |\n|                |                                          | [path.win32](https://nodejs.org/api/path.html#path_path_posix \"path.win32\") |                                          |\n|                |                                          | [path.format(pathObject)](https://nodejs.org/api/path.html#path_path_posix \"path.format(pathObject)\") |                                          |\n|    process     | [shtylman/node-process](https://github.com/shtylman/node-process) | [process.channel](https://nodejs.org/api/process.html#process_process_channel \"process.channel\") |                                          |\n|                |                                          | [process.platform](https://nodejs.org/api/process.html#process_process_platform \"process.platform\") | [Issue](https://github.com/defunctzombie/node-process/issues/55) |\n|                |                                          | [process.execArgv](https://nodejs.org/api/process.html#process_process_execargv \"process.execArgv\") | [Issue](https://github.com/defunctzombie/node-process/issues/75) |\n|                |                                          | [process.cpuUsage([previousValue])](https://nodejs.org/api/process.html#process_process_cpuusage_previousvalue \"process.cpuUsage([previousValue])\") |                                          |\n|                |                                          | [process.emitWarning(warning[, options])](https://nodejs.org/api/process.html#process_process_emitwarning_warning_options \"process.emitWarning(warning[, options])\") |                                          |\n|    punycode    | [bestiejs/punycode.js](https://github.com/bestiejs/punycode.js) |                   ---                    |                                          |\n|  querystring   | [mike-spainhower/querystring](https://github.com/mike-spainhower/querystring) |                   ---                    |                                          |\n|    readline    |                   ---                    |                   ---                    |                                          |\n|      repl      |                   ---                    |                   ---                    |                                          |\n|     stream     | [substack/stream-browserify](https://github.com/substack/stream-browserify) |                   ---                    |                                          |\n| string_decoder | [rvagg/string_decoder](https://github.com/rvagg/string_decoder) |                   TODO                   | [Repository](https://github.com/nodejs/string_decoder) |\n|      sys       | [defunctzombie/node-util](https://github.com/defunctzombie/node-util) |                   TODO                   |                                          |\n|     timers     | [jryans/timers-browserify](https://github.com/jryans/timers-browserify) |                   ---                    |                                          |\n|      tls       |                   ---                    |                   ---                    |                                          |\n|      tty       | [substack/tty-browserify](https://github.com/substack/tty-browserify) |                   ---                    |                                          |\n|      url       | [defunctzombie/node-url](https://github.com/defunctzombie/node-url) |          `url.URL`(WHATWG URL)           | [Release](https://nodejs.org/en/blog/release/v8.0.0/#say-hello-to-the-whatwg-url-parser), [Document](https://nodejs.org/api/url.html#url_the_whatwg_url_api), [Issue](https://github.com/defunctzombie/node-url/issues/33) |\n|                |                                          | `url.format` does't support  WHATWG URL  | [Release](https://nodejs.org/en/blog/release/v7.6.0/), [Document](https://nodejs.org/api/url.html#url_url_format_url_options) |\n|      util      | [defunctzombie/node-util](https://github.com/defunctzombie/node-util) | [util.callbackify(original)](https://nodejs.org/api/util.html#util_util_callbackify_original \"util.callbackify(original)\") |                                          |\n|                |                                          | [util.inspect.custom](https://nodejs.org/api/util.html#util_util_inspect_custom \"util.inspect.custom\") |                                          |\n|                |                                          | [util.inspect.defaultOptions](https://nodejs.org/api/util.html#util_util_inspect_defaultoptions \"util.inspect.defaultOptions\") |                                          |\n|                |                                          | [util.promisify(original)](https://nodejs.org/api/util.html#util_util_promisify_original \"util.promisify(original)\") |                                          |\n|                |                                          | [util.promisify.custom](https://nodejs.org/api/util.html#util_util_promisify_custom \"util.promisify.custom\") |                                          |\n|                |                                          | [util.inspect() options maxArrayLength, breakLength](https://github.com/defunctzombie/node-util/issues/15 \"util.inspect() options maxArrayLength, breakLength\") |                                          |\n|                |                                          | [util.isDeepStrictEqual](https://nodejs.org/api/util.html#util_util_isdeepstrictequal_val1_val2) |                                          |\n|                |                                          | [util.isDeepStrictEqual](https://nodejs.org/api/util.html#util_util_isdeepstrictequal_val1_val2) |                                          |\n|       vm       | [substack/vm-browserify](https://github.com/substack/vm-browserify) | [vm.isContext(sandbox)](https://nodejs.org/api/vm.html#vm_vm_runincontext_code_contextifiedsandbox_options \"vm.isContext(sandbox)\") |                                          |\n|      zlib      | [devongovett/browserify-zlib](https://github.com/devongovett/browserify-zlib) | [zlib.bytesRead](https://nodejs.org/api/zlib.html#zlib_zlib_bytesread \"zlib.bytesRead#\") |                                          |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazu%2Fnode-browser-polyfill-gap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazu%2Fnode-browser-polyfill-gap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazu%2Fnode-browser-polyfill-gap/lists"}