Commit 6f5e83db authored by Milo Yip's avatar Milo Yip Committed by GitHub

Merge pull request #639 from milkandsour/master

npm docs
parents ba54d028 f9810e54
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
* Support optional relaxed syntax. * Support optional relaxed syntax.
* Single line (`// ...`) and multiple line (`/* ... */`) comments (`kParseCommentsFlag`). * Single line (`// ...`) and multiple line (`/* ... */`) comments (`kParseCommentsFlag`).
* Trailing commas at the end of objects and arrays (`kParseTrailingCommasFlag`). * Trailing commas at the end of objects and arrays (`kParseTrailingCommasFlag`).
* [NPM compliant](doc/npm.md).
## Unicode ## Unicode
......
## 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")\')'
]
}
]
}
~~~~~~~~~~
{ {
"name": "rapidjson", "name": "rapidjson",
"version": "1.0.3", "version": "1.0.4",
"description": "![](doc/logo/rapidjson.png)", "description": "![](doc/logo/rapidjson.png)",
"main": "index.js", "main": "include_dirs.js",
"directories": { "directories": {
"doc": "doc", "doc": "doc",
"example": "example", "example": "example",
...@@ -20,6 +20,5 @@ ...@@ -20,6 +20,5 @@
"bugs": { "bugs": {
"url": "https://github.com/miloyip/rapidjson/issues" "url": "https://github.com/miloyip/rapidjson/issues"
}, },
"homepage": "https://github.com/miloyip/rapidjson#readme", "homepage": "https://github.com/miloyip/rapidjson#readme"
"main": "include_dirs.js"
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment