On Fri, Jan 18, 2013 at 3:19 AM,  <[email protected]> wrote:
> I don't want `require("kitchen-sink/lib/foo")` on one environment and
> `require("kitchen-sink/foo")` on another, the lack of a "directories.lib"
> setting is hurting compatibility/flexibility. It's a shame to have to follow
> the less flexible system just because it is the most popular, this is not
> how "standards" should be created.

Then you use require(actualFilePath) in node, and
require(fakeFilePath) in other environments.  Put the node file at
foo/bar.js and the ringojs file at foo/lib/bar.js.

Or, you can check the environment in your script, and build up a
string using programming.  Then pass that string to require().  You
could even get fancy and use a switch statement or something.

No amount of beating will bring this horse back to life.

-- 
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

Reply via email to