Brandon, I like this! It's a shame that it requires --harmony. When/if Proxy lands in our normal V8 by default, we should consider replacing process.env with this.
On Thu, Jun 28, 2012 at 8:08 AM, Brandon Benvie <brandon.ben...@gmail.com> wrote: > Just as a distraction from work I should be doing instead, I made a module > that exports the EnvGetter, EnvSetter, EnvEnumerator, and EnvDeleter as > functions. It also optionally, if Proxy is available, exports an Environment > constructor that creates objects that are similar to process.env but more > closely follow semantics of real objects. I may expand it to support > management of env of other process, but this is more complicated and for now > it's just an experiment that sticks to node's existing functionality. > > https://github.com/Benvie/environment > > -- > 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 nodejs@googlegroups.com > To unsubscribe from this group, send email to > nodejs+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en -- 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 nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en