Skip to content

Commit

Permalink
Merge pull request #639 from milkandsour/master
Browse files Browse the repository at this point in the history
npm docs
  • Loading branch information
miloyip authored Jun 10, 2016
2 parents ba54d02 + f9810e5 commit 6f5e83d
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 4 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")\')'
]
}
]
}
~~~~~~~~~~
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "rapidjson",
"version": "1.0.3",
"version": "1.0.4",
"description": "![](doc/logo/rapidjson.png)",
"main": "index.js",
"main": "include_dirs.js",
"directories": {
"doc": "doc",
"example": "example",
Expand All @@ -20,6 +20,5 @@
"bugs": {
"url": "https://github.com/miloyip/rapidjson/issues"
},
"homepage": "https://github.com/miloyip/rapidjson#readme",
"main": "include_dirs.js"
"homepage": "https://github.com/miloyip/rapidjson#readme"
}

0 comments on commit 6f5e83d

Please sign in to comment.