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.
 
 
 
 
 
 
Mithun Patel e6bdb6176b docs: fix man pages link if tok type is code 9 years ago
..
node_modules doc: don't use ' 12 years ago
LICENSE Mention marked, and add license to doc generator 13 years ago
README.md doc: remove out-of-date matter from internal docs 9 years ago
addon-verify.js doc,tools,test: lint doc-based addon tests 9 years ago
generate.js tools: apply linting to doc tools 9 years ago
html.js docs: fix man pages link if tok type is code 9 years ago
json.js tools: fix redeclared vars in doc/json.js 9 years ago
package.json New documentation generation tool 13 years ago
preprocess.js tools: apply linting to doc tools 9 years ago
type-parser.js tools,doc: fix linting errors 9 years ago

README.md

Here's how the node docs work.

1:1 relationship from lib/<module>.js to doc/api/<module>.markdown

Each type of heading has a description block.

## module

    Stability: 3 - Stable

description and examples.

### module.property

* Type

description of the property.

### module.someFunction(x, y, [z=100])

* `x` {String} the description of the string
* `y` {Boolean} Should I stay or should I go?
* `z` {Number} How many zebras to bring.

A description of the function.

### Event: 'blerg'

* Argument: SomeClass object.

Modules don't usually raise events on themselves.  `cluster` is the
only exception.

## Class: SomeClass

description of the class.

### Class Method: SomeClass.classMethod(anArg)

* `anArg` {Object}  Just an argument
  * `field` {String} anArg can have this field.
  * `field2` {Boolean}  Another field.  Default: `false`.
* Return: {Boolean} `true` if it worked.

Description of the method for humans.

### someClass.nextSibling()

* Return: {SomeClass object | null}  The next someClass in line.

### someClass.someProperty

* String

The indication of what someProperty is.

### Event: 'grelb'

* `isBlerg` {Boolean}

This event is emitted on instances of SomeClass, not on the module itself.
  • Modules have (description, Properties, Functions, Classes, Examples)
  • Properties have (type, description)
  • Functions have (list of arguments, description)
  • Classes have (description, Properties, Methods, Events)
  • Events have (list of arguments, description)
  • Methods have (list of arguments, description)
  • Properties have (type, description)