+33
| 'use strict' | ||
| // print toby.version | ||
| console.log(`node :: toby.version = ${toby.version}`); | ||
| var num = 42; | ||
| var foo = 'foo'; | ||
| toby.on('test', function(x){ | ||
| console.log(`node :: toby.on(test) = ${x}`); | ||
| }); | ||
| var result = toby.hostCall('dory', {num, foo}); | ||
| console.log(`node :: toby.hostCall() = ${result}`); | ||
| // var cluster = require('cluster'); | ||
| // cluster.on('c', function(x){console.log(`node :: x`)}); | ||
| // if (cluster.isMaster) { | ||
| // console.log('node :: im master'); | ||
| // cluster.fork(); | ||
| // cluster.emit('c', 'greeting from parent :)') | ||
| // } else { | ||
| // console.log('node :: im slave. bye bye'); | ||
| // cluster.emit('c','greeting from child :o') | ||
| // process.exit(0); | ||
| // } | ||
| // exit after 2 secs | ||
| (function(){setTimeout(function(){ | ||
| process.exitCode = 42; | ||
| },2000)})(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
| [object Arguments]hi |
+10
| var console = { | ||
| log : function() { | ||
| // handle here in js | ||
| // test | ||
| require('fs').appendFileSync('stdout.log', arguments[0]); | ||
| } | ||
| }; | ||
| console.log('hi', 'there'); |
Sorry, the diff of this file is not supported yet
+1
-1
| { | ||
| "name": "delphi", | ||
| "version": "0.0.1", | ||
| "version": "0.0.2", | ||
| "description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+16
-1
@@ -1,1 +0,16 @@ | ||
| # node-delphi | ||
| # node-delphi | ||
| ## GUI Example | ||
|  | ||
| ## Console Example | ||
|  | ||
| you must copy tobynode.dll to the build directory(such as /Console/Win32/Debug/) | ||
| ### download tobynode.dll | ||
| * https://github.com/ivere27/archive/tree/master/tobynode/node_v6.10.0_x_toby_v0.1.5_x86_debug | ||
| ### or build tobynode.dll (includes toby and node.js) | ||
| * https://github.com/ivere27/toby/tree/master/vc_tobynode |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
126806
246.71%16
300%31
Infinity%17
1600%0
-100%1
Infinity%