commit | 19f68e02f411bcf0555fe8f6858ef1a6dadb27d1 | [log] [tgz] |
---|---|---|
author | Suharsh Sivakumar <suharshs@google.com> | Thu Feb 18 13:21:49 2016 -0800 |
committer | Suharsh Sivakumar <suharshs@google.com> | Thu Feb 18 13:22:23 2016 -0800 |
tree | a6b8243988e4566053a051fbfdf6379ee295dae4 | |
parent | 543cd73bd8e6053d5d720c4936ac7f4af5d4a7bb [diff] |
javascript/naming: Remove support for endpoint version 5. This isn't used anywhere anymore. Change-Id: Ia2aaabb71ac1b7454d26c50a1bb46ae988a6e6e3
This repository defines the JavaScript API for Vanadium. The client and server APIs defined here work both in Node.js and the browser.
npm install --save vanadium/js
The entry point to the API is through a module called vanadium
, everything else is considered private and should not be accessed by the users of the API.
The vanadium
module is exported as a global in the browser JavaScript library and for Browserify and Node.js the “main” property in the package.json
points to /src/vanadium
making it the index module and therefore Browserify and Node.js users can gain access to the API with:
var vanadium = require("vanadium");
One of the goals of this project is to only write the code once and have it run in both Node.js and browsers. Therefore, specific build and testing steps have been designed in the project to ensure this goal.
When run in a browser, vanadium.js
expects that the vanadium extension will be installed.
Bugs and feature requests should be filed in the Vanadium issue tracker.
GNU Make is used to build and test Vanadium.
Build everything:
make build
Test everything:
make test
Run a specific test suite:
make test-unit make test-unit-node make test-unit-browser make test-integration make test-integration-node make test-integration-browser
Remove all build and testing artifacts:
make clean