Doc improvements
This commit is contained in:
parent
7a6a77e07c
commit
3eb246485a
@ -41,16 +41,6 @@ Modules are cached in this object when they are required. By deleting a key
|
|||||||
value from this object, the next `require` will reload the module.
|
value from this object, the next `require` will reload the module.
|
||||||
|
|
||||||
|
|
||||||
### require.paths
|
|
||||||
|
|
||||||
An array of search paths for `require()`. This array can be modified to add
|
|
||||||
custom paths.
|
|
||||||
|
|
||||||
Example: add a new path to the beginning of the search list
|
|
||||||
|
|
||||||
require.paths.unshift('/usr/local/node');
|
|
||||||
|
|
||||||
|
|
||||||
### __filename
|
### __filename
|
||||||
|
|
||||||
The filename of the script being executed. This is the absolute path, and not necessarily
|
The filename of the script being executed. This is the absolute path, and not necessarily
|
||||||
|
@ -244,7 +244,7 @@ Additionally, node will search in the following locations:
|
|||||||
* 2: `$HOME/.node_libraries`
|
* 2: `$HOME/.node_libraries`
|
||||||
* 3: `$PREFIX/lib/node`
|
* 3: `$PREFIX/lib/node`
|
||||||
|
|
||||||
Where `$HOME` is the user's home directory, and `PREFIX` is node's
|
Where `$HOME` is the user's home directory, and `$PREFIX` is node's
|
||||||
configured `installPrefix`.
|
configured `installPrefix`.
|
||||||
|
|
||||||
These are mostly for historic reasons. You are highly encouraged to
|
These are mostly for historic reasons. You are highly encouraged to
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
<title>{{section}}Node.js v0.5.2 Manual & Documentation</title>
|
<title>{{section}}Node.js v0.5.2 Manual & Documentation</title>
|
||||||
<link type="image/x-icon" rel="icon" href="/favicon.ico" />
|
<link type="image/x-icon" rel="icon" href="/favicon.ico" />
|
||||||
<link type="image/x-icon" rel="shortcut icon" href="/favicon.ico" />
|
<link type="image/x-icon" rel="shortcut icon" href="/favicon.ico" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user