diff options
Diffstat (limited to 'src/nodejs')
-rw-r--r-- | src/nodejs/unit-http/README.md | 19 | ||||
-rw-r--r-- | src/nodejs/unit-http/binding_pub.gyp | 2 | ||||
-rw-r--r-- | src/nodejs/unit-http/package.json | 2 |
3 files changed, 21 insertions, 2 deletions
diff --git a/src/nodejs/unit-http/README.md b/src/nodejs/unit-http/README.md index 139597f9..71a4067a 100644 --- a/src/nodejs/unit-http/README.md +++ b/src/nodejs/unit-http/README.md @@ -1,2 +1,21 @@ +# Node.js Package for NGINX Unit +[<img src="https://unit.nginx.org/_static/logo.svg" width=150px>](https://unit.nginx.org) +Node.js support package for NGINX Unit. +For details, see [NGINX Unit documentation](https://unit.nginx.org). +## Installation + +```bash +npm i unit-http +``` + +## Usage + +```javascript +var http = require('unit-http'); +``` + +## License + +Apache 2.0 diff --git a/src/nodejs/unit-http/binding_pub.gyp b/src/nodejs/unit-http/binding_pub.gyp index e53538d0..6fe3d9bc 100644 --- a/src/nodejs/unit-http/binding_pub.gyp +++ b/src/nodejs/unit-http/binding_pub.gyp @@ -2,6 +2,6 @@ 'targets': [{ 'target_name': "unit-http", 'sources': ["unit.cpp", "addon.cpp"], - 'libraries': ["unit"] + 'libraries': ["-lunit"] }] } diff --git a/src/nodejs/unit-http/package.json b/src/nodejs/unit-http/package.json index bc481bc9..3a15d573 100644 --- a/src/nodejs/unit-http/package.json +++ b/src/nodejs/unit-http/package.json @@ -21,7 +21,7 @@ "install": "node-gyp configure build" }, "author": "Alexander Borisov", - "license": "Apache 2.0", + "license": "Apache-2.0", "gypfile": true, "dependencies": { "node-addon-api": "1.2.0" |