Node.js JavaScript runtime 🐢🚀
 
 
 
 
 
 
Go to file
Ben Noordhuis 44843a6062 child_process: fix sending utf-8 to child process
In process#send() and child_process.ChildProcess#send(), use 'utf8' as
the encoding instead of 'ascii' because 'ascii' mutilates non-ASCII
input. Correctly handle partial character sequences by introducing
a StringDecoder.

Sending over UTF-8 no longer works in v0.10 because the high bit of
each byte is now cleared when converting a Buffer to ASCII. See
commit 96a314b for details.

Fixes #4999 and #5011.
2013-03-25 13:23:17 +01:00
benchmark bench: add child process read perf benchmark 2013-03-25 13:16:07 +01:00
deps deps: fix openssl build on windows 2013-03-24 22:53:11 +01:00
doc doc: document that stdio is usually blocking 2013-03-23 15:38:17 +01:00
lib child_process: fix sending utf-8 to child process 2013-03-25 13:23:17 +01:00
src tls: remove harmful unnecessary bounds checking 2013-03-24 00:04:34 +07:00
test child_process: fix sending utf-8 to child process 2013-03-25 13:23:17 +01:00
tools tools: update gyp to r1601 2013-03-24 15:03:09 +01:00
.gitattributes Explicitly disable cr/lf conversion for test fixtures 2011-08-10 19:59:37 +02:00
.gitignore tools: Add wrk for benchmarking http servers 2013-02-19 17:16:18 -08:00
.mailmap Update .mailmap and AUTHORS 2013-03-19 20:07:38 +01:00
.travis.yml test: add `.travis.yml` for testing on Travis CI 2011-12-05 16:50:55 -08:00
AUTHORS 2013.03.21, Version 0.10.1 (Stable) 2013-03-20 18:15:04 -07:00
BSDmakefile Tell BSD users to run `gmake` instead. 2011-07-11 14:17:23 +02:00
CONTRIBUTING.md doc: update CONTRIBUTING.md 2013-03-24 13:28:46 +01:00
ChangeLog 2013.03.21, Version 0.10.1 (Stable) 2013-03-20 18:15:04 -07:00
LICENSE doc: Add wrk's license to LICENSE file 2013-03-08 13:47:36 -08:00
Makefile build: define nightly tag external to build system 2013-03-05 14:43:27 -08:00
README.md doc: document PYTHON env var in README 2013-01-22 13:53:49 +01:00
common.gypi Revert "build, windows: disable SEH" 2013-03-05 19:40:02 +01:00
configure configure: define "arm_fpu" and "arm_neon" for ARM 2013-01-10 17:13:59 -08:00
node.gyp Revert "sunos: unbreak build after v8 downgrade" 2013-02-26 07:57:12 +00:00
vcbuild.bat build: define nightly tag external to build system 2013-03-05 14:43:27 -08:00

README.md

Evented I/O for V8 javascript. Build Status

To build:

Prerequisites (Unix only):

* Python 2.6 or 2.7
* GNU Make 3.81 or newer
* libexecinfo (FreeBSD and OpenBSD only)

Unix/Macintosh:

./configure
make
make install

If your python binary is in a non-standard location or has a non-standard name, run the following instead:

export PYTHON=/path/to/python
$PYTHON ./configure
make
make install

Windows:

vcbuild.bat

To run the tests:

Unix/Macintosh:

make test

Windows:

vcbuild.bat test

To build the documentation:

make doc

To read the documentation:

man doc/node.1

Resources for Newcomers