Code Monkey home page Code Monkey logo

node-thrust's Introduction

node-thrust

Official NodeJS bindings library for Thrust

Getting started

npm install node-thrust

At install, node-thrust post_install script automatically downloads a binary distribution of Thrust for the current platform.

require('node-thrust')(function(err, api) { 
  api.window({ root_url: 'https://breach.cc' }).show();
});

Status

Supports the complete Thrust API. Works on Linux, MacOSX, Windows.

Documentation

Pending specific node-thrust documentation, full API reference is available in the Thrust Documentation

node-thrust's People

Contributors

droekm avatar morganrallen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-thrust's Issues

Possible post-install issue.

Michaels-MacBook-Pro-2:get-referred-v2 mhernandez$ npm install -g https://gist.github.com/morganrallen/f07f59802884bcdcad4a/download

[email protected] postinstall /Users/mhernandez/.nvm/v0.11.14/lib/node_modules/jankybrowser/node_modules/node-thrust
node scripts/bootstrap.js

Creating: /Users/mhernandez/.nvm/v0.11.14/lib/node_modules/jankybrowser/node_modules/node-thrust/vendor/thrust
Downloading: https://github.com/breach/thrust/releases/download/v0.7.4/thrust-v0.7.4-darwin-x64.zip
................
Extracting /Users/mhernandez/.nvm/v0.11.14/lib/node_modules/jankybrowser/node_modules/node-thrust/vendor/thrust/thrust-v0.7.4-darwin-x64.zip
stderr: [/Users/mhernandez/.nvm/v0.11.14/lib/node_modules/jankybrowser/node_modules/node-thrust/vendor/thrust/thrust-v0.7.4-darwin-x64.zip]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of /Users/mhernandez/.nvm/v0.11.14/lib/node_modules/jankybrowser/node_modules/node-thrust/vendor/thrust/thrust-v0.7.4-darwin-x64.zip or
/Users/mhernandez/.nvm/v0.11.14/lib/node_modules/jankybrowser/node_modules/node-thrust/vendor/thrust/thrust-v0.7.4-darwin-x64.zip.zip, and cannot find /Users/mhernandez/.nvm/v0.11.14/lib/node_modules/jankybrowser/node_modules/node-thrust/vendor/thrust/thrust-v0.7.4-darwin-x64.zip.ZIP, period.

[2014-11-10T17:10:08.766Z] *********************************************
[2014-11-10T17:10:08.767Z] ERROR: Extraction failed with code: 9
[2014-11-10T17:10:08.767Z] *********************************************
[2014-11-10T17:10:08.769Z] Error: Extraction failed with code: 9
[2014-11-10T17:10:08.769Z] at Object.exports.err (/Users/mhernandez/.nvm/v0.11.14/lib/node_modules/jankybrowser/node_modules/node-thrust/lib/common.js:311:13)
[2014-11-10T17:10:08.769Z] at ChildProcess. (/Users/mhernandez/.nvm/v0.11.14/lib/node_modules/jankybrowser/node_modules/node-thrust/scripts/bootstrap.js:129:29)
[2014-11-10T17:10:08.769Z] at ChildProcess.emit (events.js:118:17)
[2014-11-10T17:10:08.769Z] at maybeClose (child_process.js:1000:16)
[2014-11-10T17:10:08.769Z] at Socket. (child_process.js:1168:11)
[2014-11-10T17:10:08.769Z] at Socket.emit (events.js:107:17)
[2014-11-10T17:10:08.769Z] at Pipe.close (net.js:461:12)
[2014-11-10T17:10:08.769Z] ---------------------------------------------

Error: read ECONNRESET

This came up in IRC and I forgot to file but I've not seen it again.

22:25 $ ./node_modules/jankybrowser/jankybrowser
listening on 21024
[2014-11-22T06:26:11.883Z] SPAWING /tmp/node_modules/jankybrowser/node_modules/node-thrust/vendor/thrust/thrust_shell

events.js:72
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at errnoException (net.js:904:11)
at Pipe.onread (net.js:558:19)

Multiple warnings and errors with npm install on Win-8.1

npm-debug-log: https://yadi.sk/i/MmDi4Evjr4h3C

E:\node\001-thrust>npm install node-thrust
npm WARN deprecated [email protected]: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.

[email protected] postinstall E:\node\001-thrust\node_modules\node-thrust

node scripts/bootstrap.js

E:\node\001-thrust\node_modules\node-thrust\vendor\thrust.version
Creating: E:\node\001-thrust\node_modules\node-thrust\vendor\thrust
Downloading: https://github.com/breach/thrust/releases/download/v0.7.6/thrust-v0.7.6-win32-ia32.zip

[2016-04-17T12:38:12.095Z] *********************************************
[2016-04-17T12:38:12.096Z] ERROR: getaddrinfo ENOTFOUND github.com github.com:443
[2016-04-17T12:38:12.098Z] *********************************************
[2016-04-17T12:38:12.099Z] Error: getaddrinfo ENOTFOUND github.com github.com:443
[2016-04-17T12:38:12.099Z] at errnoException (dns.js:26:10)
[2016-04-17T12:38:12.099Z] at GetAddrInfoReqWrap.onlookup as oncomplete
[2016-04-17T12:38:12.107Z] ---------------------------------------------
npm WARN enoent ENOENT: no such file or directory, open 'E:\node\001-thrust\package.json'
npm WARN 001-thrust No description
npm WARN 001-thrust No repository field.
npm WARN 001-thrust No README data
npm WARN 001-thrust No license field.
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\nodejs\node.exe" "C:\Users\teo\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "node-thrust"
npm ERR! node v5.10.1
npm ERR! npm v3.8.6
npm ERR! code ELIFECYCLE

npm ERR! [email protected] postinstall: node scripts/bootstrap.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node scripts/bootstrap.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-thrust package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/bootstrap.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs node-thrust
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls node-thrust
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! E:\node\001-thrust\npm-debug.log

E:\node\001-thrust>node -v
v5.10.1

E:\node\001-thrust>npm -v
3.8.6

window does not open

When I run the following code with node-thrust, the window does not open.
I'm using MS Windows

require('node-thrust')(function(err, api) { api.window({ root_url: 'https://breach.cc' }).show(); });

this is what i get on the command line

[2015-01-07T11:15:53.779Z] SPAWING c:\Users\ACARE\Desktop\lily\node_modules\node-thrust\vendor\thrust\thrust_shell

Enable debugging

We need a way to debug in the browser. Whether it's by exposing the remote debugging port or by embedding the chrome debugger in the window doesn't matter. I just need a way in inspect the page being rendered.

There is no function to exit the thrust process

I can call process.exit() in the window close event handler but this only shuts down my node process, not the thrust chromium process, so the window is still running in the dock on my Mac even though my program has ended.

Launch Thrust with command line flags

We'll want to launch chromium with it's configurable startup flags.
For example: --disable-accelerated-video would disable gpu accelerated video.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.