smartersign / aws-crt-nodejs

NodeJS bindings for the AWS Common Runtime.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AWS CRT JS

NodeJS/Browser bindings for the AWS Common Runtime

API Docs

License

This library is licensed under the Apache 2.0 License.

Building the package

Prereqs:

  • Node 10.16+
  • npm
  • CMake 3.1+
  • Linux: gcc 5+ or clang 3.6+
    • If your compiler can compile node, it can compile this library
  • Windows: Visual Studio 2015+
  • OSX: XCode or brew-installed llvm

To build the package locally

npm install

Using From Your NodeJS Application

Normally, you just declare aws-crt as a dependency in your package.json file.

Using From Your Browser Application

You can either add it to package.json (if using a tool like webpack), or just import the dist.browser/ folder into your web project

Installing from npm

npm install aws-crt

Mac-Only TLS Behavior

Please note that on Mac, once a private key is used with a certificate, that certificate-key pair is imported into the Mac Keychain. All subsequent uses of that certificate will use the stored private key and ignore anything passed in programmatically. Beginning in v1.1.11, when a stored private key from the Keychain is used, the following will be logged at the "info" log level:

static: certificate has an existing certificate-key pair that was previously imported into the Keychain.  Using key from Keychain instead of the one provided.

About

NodeJS bindings for the AWS Common Runtime.

License:Apache License 2.0


Languages

Language:C 60.3%Language:TypeScript 37.3%Language:JavaScript 1.2%Language:CMake 0.7%Language:Shell 0.5%Language:Batchfile 0.0%