To view this discussion on the web visit https://groups.google.com/d/msg/nodejs/-/WrZUcyZG6k4J.
--
You received this message because you are subscribed to the Google Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com.
To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.
-L
What is it exactly that you want to compile into a standalone program?
The only thing that hasn't been done is building a custom node. It
should be pretty easy even without Paul's work. To test this theory,
simply change the JavaScript in src/node.js in the node source code.
In fact, I just looked in that file, and it seems there is a new
feature where you simply drop a js file called
lib/_third_party_main.js and it will be called instead of node's
normal startup. This requires a compile step to test, but the end
result is a single binary with your logic included.
Put a file at lib/_third_party_main.js, and then compile node. It'll
run your _third_party_main.js file instead of it's normal main module
loading.
If you put any other files in the lib folder, they'll be there as
native modules as well. The filenames have to be compatibile with c
variable names, so use underscores rather than hyphens. So, if you
put a lib/foo.js, then in your program, you should be able to do
require("foo"). It's a little bit ghetto and overly intimate, but
that might get the job done.
License-wise, node is MIT licensed, so you can use it in commercial
for-pay projects. Read the LICENSE file in the repo. You should be
fine for almost anything you want to do, but feel free to ask here or
privately if you have specific questions.
If you want to advertise that your program uses or is built on top of
node (which is encouraged!) then you can do so, and use the name and
logo, within the terms of the trademark policy found here:
http://nodejs.org/trademark-policy.pdf Again, contact us if you have
specific questions about trademark and logo usage, but it sounds like
basically the paradigm case of nominative use.
I am much less versed in the legalities of bundling, forking, or
distributing Cygwin.
As always, this probably goes without saying: once you know what you
want to do, and you have a pretty good idea that it's probably legal,
take the relevant docs to a lawyer to review and make sure you're not
accidentally exposing yourself to risk by stepping on someone else's
IP.