Comparing version 0.0.10 to 0.0.11
{ | ||
"name": "remoty", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "remote console", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
110
README.md
# Remoty | ||
Remoty是一款针对webapp应用开发的远程调试工具。 | ||
> Installation | ||
目的是使钱包内h5 webapp项目的开发调试变得更容易。 | ||
> 安装 | ||
``` | ||
@@ -13,106 +9,2 @@ npm install remoty -g | ||
--- | ||
> 服务端 | ||
``` | ||
remoty -h | ||
remoty | ||
Usage: remoty [options] | ||
Options: | ||
-h, --help output usage information | ||
-V, --version output the version number | ||
-p, --port <value> Specify the port remoty server will listen on(3000 by default) | ||
``` | ||
> 客户端 | ||
使用Charles proxy/ Fiddler 类似工具 将AWebApp.js代理至remoty服务端所提供的对应脚本 | ||
> 示例 | ||
- 在webapp触发deviceready事件后发送如下信息 | ||
``` | ||
[user-agent] 2014-05-26 13:50:43 | ||
AlipayWebApp/9.1.0;Mozilla/5.0 (Linux; U; Android 4.3; zh-cn; Google Galaxy Nexus - 4.3 - API 18 - 720x1280 Build/JLS36G) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30 | ||
[client info] 2014-05-26 13:50:43 | ||
{ window: | ||
{ devicePixelRatio: 2, | ||
performance: true, | ||
WebSocket: false, | ||
localStorage: true, | ||
location: | ||
{ host: '', | ||
port: '', | ||
href: 'file:///data/data/com.eg.android.AlipayGphone/files/apps/2014052100156334//www/alipay.context/startApp.html', | ||
hostname: '', | ||
search: '', | ||
hash: '', | ||
protocol: 'file:', | ||
origin: 'file://', | ||
pathname: '/data/data/com.eg.android.AlipayGphone/files/apps/2014052100156334//www/alipay.context/startApp.html' }, | ||
screen: | ||
{ colorDepth: 32, | ||
availHeight: 1280, | ||
width: 720, | ||
availTop: 0, | ||
pixelDepth: 32, | ||
availLeft: 0, | ||
height: 1280, | ||
availWidth: 720 }, | ||
innerWidth: 360, | ||
innerHeight: 523, | ||
outerHeight: 1046, | ||
outerWidth: 720 }, | ||
document: | ||
{ domain: '', | ||
charset: 'UTF-8', | ||
compatMode: 'CSS1Compat', | ||
referrer: '', | ||
readyState: 'complete', | ||
designMode: 'off', | ||
width: 360, | ||
height: 523 } } | ||
``` | ||
- remoty.log | ||
调用 | ||
``` | ||
remoty.log("....", "test", [1,2,3], {a:1}); | ||
``` | ||
控制台输出 | ||
``` | ||
[log] 2014-05-26 13:56:30 | ||
....,test,[1,2,3],{"a":1} | ||
``` | ||
- 报错,如下代码 | ||
``` | ||
var object = { | ||
a:1 | ||
b:2 | ||
} | ||
``` | ||
控制台输出 | ||
``` | ||
[error] 2014-05-26 13:56:30 - Script error. | ||
行:0, 列:0 | ||
suggests: | ||
0. 异常列表 - JavaScript 异常档案 | ||
http://errors.totorojs.org/wiki/ | ||
``` |
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
298893
10