Merge pull request #639 from milkandsour/master

npm docs
This commit is contained in:
Milo Yip 2016-06-10 11:31:00 +08:00 committed by GitHub
commit 6f5e83db04
3 changed files with 32 additions and 0 deletions

View File

@ -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

31
doc/npm.md Normal file
View File

@ -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")\')'
]
}
]
}
~~~~~~~~~~

Binary file not shown.