I think you should create file
exportfb.js:
window.fb = require('node-firebird');
and then
browserify exportfb.js > browser-index.js
then try exmaple w/o line
var fb = require("node-firebird");
2014-02-17 18:45 GMT+02:00 Adrian Marius Popa <[email protected]>:
> I forgot the example
>
>
> https://github.com/mariuz/node-firebird/blob/master/lib/examples/browser_client.html
>
> and the webtcp server
> https://github.com/mariuz/node-firebird/tree/master/lib/examples
>
>
> On Monday, February 17, 2014 6:15:46 PM UTC+2, Adrian Marius Popa wrote:
>>
>> It is just a skeleton for the moment using WebTCP
>> http://artemyankov.com/tcp-client-for-browsers/
>> I have run
>> browserify index.js > browser-index.js
>> https://github.com/mariuz/node-firebird/blob/master/lib/browser-index.js
>>
>> Implemented a web client example
>> https://github.com/mariuz/node-firebird/commit/
>> 9158b5799de78ee0d53dc059c32ae4476e89abfa
>>
>> Library is using
>>
>> tcp.createSocket
>>
>> For the moment i'm stuck around
>> var fb = require("node-firebird");
>>
>> ReferenceError: require is not defined
>>
>> any tips patches are welcome :)
>>
> --
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.