You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
4.1 KiB

4 years ago
  1. # node-libs-browser
  2. The node core libs for in-browser usage.
  3. NOTE: This library is deprecated and won't accept Pull Requests that include Breaking Changes or new Features. Only bugfixes are accepted.
  4. [![dependencies status](http://david-dm.org/webpack/node-libs-browser.png)](http://david-dm.org/webpack/node-libs-browser)
  5. Exports a hash [object] of absolute paths to each lib, keyed by lib names. Modules without browser replacements are `null`.
  6. Some modules have mocks in the `mock` directory. These are replacements with minimal functionality.
  7. | lib name | browser implementation | mock implementation |
  8. |:--------:|:----------------------:|:-------------------:|
  9. | assert | [defunctzombie/commonjs-assert](https://github.com/defunctzombie/commonjs-assert) | --- |
  10. | buffer | [feross/buffer](https://github.com/feross/buffer) | [buffer.js](https://github.com/webpack/node-libs-browser/blob/master/mock/buffer.js) |
  11. | child_process | --- | --- |
  12. | cluster | --- | --- |
  13. | console | [Raynos/console-browserify](https://github.com/Raynos/console-browserify) | [console.js](https://github.com/webpack/node-libs-browser/blob/master/mock/console.js) |
  14. | constants | [juliangruber/constants-browserify](https://github.com/juliangruber/constants-browserify) | --- |
  15. | crypto | [crypto-browserify/crypto-browserify](https://github.com/crypto-browserify/crypto-browserify) | --- |
  16. | dgram | --- | --- |
  17. | dns | --- | [dns.js](https://github.com/webpack/node-libs-browser/blob/master/mock/dns.js) |
  18. | domain | [bevry/domain-browser](https://github.com/bevry/domain-browser) | --- |
  19. | events | [Gozala/events](https://github.com/Gozala/events) | --- |
  20. | fs | --- | --- |
  21. | http | [jhiesey/stream-http](https://github.com/jhiesey/stream-http) | --- |
  22. | https | [substack/https-browserify](https://github.com/substack/https-browserify) | --- |
  23. | module | --- | --- |
  24. | net | --- | [net.js](https://github.com/webpack/node-libs-browser/blob/master/mock/net.js) |
  25. | os | [CoderPuppy/os-browserify](https://github.com/CoderPuppy/os-browserify) | --- |
  26. | path | [substack/path-browserify](https://github.com/substack/path-browserify) | --- |
  27. | process | [shtylman/node-process](https://github.com/shtylman/node-process) | [process.js](https://github.com/webpack/node-libs-browser/blob/master/mock/process.js) |
  28. | punycode | [bestiejs/punycode.js](https://github.com/bestiejs/punycode.js) | --- |
  29. | querystring | [mike-spainhower/querystring](https://github.com/mike-spainhower/querystring) | --- |
  30. | readline | --- | --- |
  31. | repl | --- | --- |
  32. | stream | [substack/stream-browserify](https://github.com/substack/stream-browserify) | --- |
  33. | string_decoder | [rvagg/string_decoder](https://github.com/rvagg/string_decoder) | --- |
  34. | sys | [defunctzombie/node-util](https://github.com/defunctzombie/node-util) | --- |
  35. | timers | [jryans/timers-browserify](https://github.com/jryans/timers-browserify) | --- |
  36. | tls | --- | [tls.js](https://github.com/webpack/node-libs-browser/blob/master/mock/tls.js) |
  37. | tty | [substack/tty-browserify](https://github.com/substack/tty-browserify) | [tty.js](https://github.com/webpack/node-libs-browser/blob/master/mock/tty.js) |
  38. | url | [defunctzombie/node-url](https://github.com/defunctzombie/node-url) | --- |
  39. | util | [defunctzombie/node-util](https://github.com/defunctzombie/node-util) | --- |
  40. | vm | [substack/vm-browserify](https://github.com/substack/vm-browserify) | --- |
  41. | zlib | [devongovett/browserify-zlib](https://github.com/devongovett/browserify-zlib) | --- |
  42. ## Outdated versions
  43. ### `buffer`
  44. The current `buffer` implementation uses feross/buffer@4.x because feross/buffer@5.x relies on [typed arrays](https://github.com/feross/buffer/commit/5daca86b7cd5d2b8ccb167534d47421029f639e9#commitcomment-19698936).
  45. This will be dropped as soon as IE9 is not a typical browser target anymore.
  46. ### `punycode`
  47. The current `punycode` implementation uses bestiejs/punycode.js@1.x because bestiejs/punycode.js@2.x requires modern JS engines that understand `const` and `let`.
  48. It will be removed someday since it has already been [deprecated from the node API](https://nodejs.org/api/punycode.html).
  49. ## License
  50. MIT