Projekt

Obecné

Profil

Stáhnout (4.06 KB) Statistiky
| Větev: | Revize:
1
# node-libs-browser
2

    
3
The node core libs for in-browser usage.
4

    
5
NOTE: This library is deprecated and won't accept Pull Requests that include Breaking Changes or new Features. Only bugfixes are accepted.
6

    
7
[![dependencies status](http://david-dm.org/webpack/node-libs-browser.png)](http://david-dm.org/webpack/node-libs-browser)
8

    
9
Exports a hash [object] of absolute paths to each lib, keyed by lib names. Modules without browser replacements are `null`.
10

    
11
Some modules have mocks in the `mock` directory. These are replacements with minimal functionality.
12

    
13
| lib name | browser implementation | mock implementation |
14
|:--------:|:----------------------:|:-------------------:|
15
| assert | [defunctzombie/commonjs-assert](https://github.com/defunctzombie/commonjs-assert) | --- |
16
| buffer | [feross/buffer](https://github.com/feross/buffer) | [buffer.js](https://github.com/webpack/node-libs-browser/blob/master/mock/buffer.js) |
17
| child_process | --- | --- |
18
| cluster | --- | --- |
19
| console | [Raynos/console-browserify](https://github.com/Raynos/console-browserify) | [console.js](https://github.com/webpack/node-libs-browser/blob/master/mock/console.js) |
20
| constants | [juliangruber/constants-browserify](https://github.com/juliangruber/constants-browserify) | --- |
21
| crypto | [crypto-browserify/crypto-browserify](https://github.com/crypto-browserify/crypto-browserify) | --- |
22
| dgram | --- | --- |
23
| dns | --- | [dns.js](https://github.com/webpack/node-libs-browser/blob/master/mock/dns.js) |
24
| domain | [bevry/domain-browser](https://github.com/bevry/domain-browser) | --- |
25
| events | [Gozala/events](https://github.com/Gozala/events) | --- |
26
| fs | --- | --- |
27
| http | [jhiesey/stream-http](https://github.com/jhiesey/stream-http) | --- |
28
| https | [substack/https-browserify](https://github.com/substack/https-browserify) | --- |
29
| module | --- | --- |
30
| net | --- | [net.js](https://github.com/webpack/node-libs-browser/blob/master/mock/net.js) |
31
| os | [CoderPuppy/os-browserify](https://github.com/CoderPuppy/os-browserify) | --- |
32
| path | [substack/path-browserify](https://github.com/substack/path-browserify) | --- |
33
| process | [shtylman/node-process](https://github.com/shtylman/node-process) | [process.js](https://github.com/webpack/node-libs-browser/blob/master/mock/process.js) |
34
| punycode | [bestiejs/punycode.js](https://github.com/bestiejs/punycode.js) | --- |
35
| querystring | [mike-spainhower/querystring](https://github.com/mike-spainhower/querystring) | --- |
36
| readline | --- | --- |
37
| repl | --- | --- |
38
| stream | [substack/stream-browserify](https://github.com/substack/stream-browserify) | --- |
39
| string_decoder | [rvagg/string_decoder](https://github.com/rvagg/string_decoder) | --- |
40
| sys | [defunctzombie/node-util](https://github.com/defunctzombie/node-util) | --- |
41
| timers | [jryans/timers-browserify](https://github.com/jryans/timers-browserify) | --- | 
42
| tls | --- | [tls.js](https://github.com/webpack/node-libs-browser/blob/master/mock/tls.js) |
43
| tty | [substack/tty-browserify](https://github.com/substack/tty-browserify) | [tty.js](https://github.com/webpack/node-libs-browser/blob/master/mock/tty.js) |
44
| url | [defunctzombie/node-url](https://github.com/defunctzombie/node-url) | --- |
45
| util | [defunctzombie/node-util](https://github.com/defunctzombie/node-util) | --- |
46
| vm | [substack/vm-browserify](https://github.com/substack/vm-browserify) | --- |
47
| zlib | [devongovett/browserify-zlib](https://github.com/devongovett/browserify-zlib) | --- |
48

    
49
## Outdated versions 
50

    
51
### `buffer`
52

    
53
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).
54
This will be dropped as soon as IE9 is not a typical browser target anymore.
55

    
56
### `punycode`
57

    
58
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`.
59
It will be removed someday since it has already been [deprecated from the node API](https://nodejs.org/api/punycode.html).
60

    
61
## License
62

    
63
MIT
(2-2/4)