mschwartz / SilkJS

V8 Based JavaScript Swiss Army Knife (and HTTP Server!)
https://github.com/decafjs/decaf
Other
323 stars 37 forks source link

Added process.env() call #6

Closed markc closed 12 years ago

markc commented 12 years ago

A simple implementation that returns an array of strings with the key and value separated by an '='. Saves an external exec to env or set. A smarter implementation might return the value of an env var with a single argument, or null if it doesn't exist, and setenv a variable if 2 args are passed, or remove the env var if the 2nd arg is null.

Also a small change to Makefile.osx to add linking to -lsqlite3