Skip to content

Commit

Permalink
npm docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Colaci authored and Andrea Colaci committed May 17, 2016
1 parent 2a3fbda commit 7708961
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
* Support optional relaxed syntax.
* Single line (`// ...`) and multiple line (`/* ... */`) comments (`kParseCommentsFlag`).
* Trailing commas at the end of objects and arrays (`kParseTrailingCommasFlag`).
* [NPM compliant](doc/npm.md).

## Unicode

Expand Down
31 changes: 31 additions & 0 deletions doc/npm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
## NPM

# package.json {#package}

~~~~~~~~~~js
{
...
"dependencies": {
...
"rapidjson": "git@github.com:miloyip/rapidjson.git"
},
...
"gypfile": true
}
~~~~~~~~~~

# binding.gyp {#binding}

~~~~~~~~~~js
{
...
'targets': [
{
...
'include_dirs': [
'<!(node -e \'require("rapidjson")\')'
]
}
]
}
~~~~~~~~~~

0 comments on commit 7708961

Please sign in to comment.