hadouken-js-adapter
Advanced tools
Comparing version 0.0.1 to 0.1.2
{ | ||
"name": "hadouken-js-adapter", | ||
"version": "0.0.1", | ||
"version": "0.1.2", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "main": "./out/src/main.js", |
# Hadouken Node.js adapter [![Build Status](https://build.openf.in:443/buildStatus/icon?job=node-adapter&style=plastic)]() | ||
Allows the use of the Hadouken API from node.js. View the [documentation](https://hadoukenio.github.io/node-adapter/) | ||
Allows the use of the Hadouken API from node.js. View the [documentation](https://hadoukenio.github.io/js-adapter/) | ||
## Requirements | ||
- Node.js LTS ^6.9 | ||
- Node.js LTS ^6.9 | ||
### Install as dependency | ||
$ `npm install -S HadoukenIO/node-adapter` | ||
$ `npm install -S hadouken-js-adapter` | ||
### Usage | ||
```javascript | ||
const { connect, Identity } = require("node-adapter"); | ||
const { connect, Identity } = require("hadouken-js-adapter"); | ||
@@ -21,14 +21,14 @@ connect({ | ||
}).then(logic).catch(connError); | ||
function logic(fin) { | ||
fin.System.getVersion().then(v => console.log("Connected to Hadouken version", v)); | ||
const win = fin.Window.wrap({ | ||
const win = fin.Window.wrap({ | ||
uuid: "remote-app-uuid", | ||
name: "remote-window-name" | ||
}); | ||
win.moveBy(500, 0).then(win.flash()); | ||
} | ||
@@ -35,0 +35,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
391509