I have tried to play with couchjs, the CouchDB 'js engine' today.
It involved some troubles (as always) so they are 'saved' here:
$sw_vers
ProductName: Mac OS X
ProductVersion: 10.11.1
BuildVersion: 15B42
$xcodebuild -version
Xcode 5.0.1
Build version 5A2053
# Installing XCode from app store (downloading 4.3 GB) ;-(
$ xcodebuild -version
Xcode 7.1.1
Build version 7B1005
# paranoid
brew --version
0.9.5 (git revision fe22f; last commit 2015-09-21)
# no so
brew --version
0.9.5 (git revision 6fe85; last commit 2015-11-30)
# and now ?
brew install spidermonkey
# yes:
/usr/local/Cellar/spidermonkey/1.8.5_1/bin/js
js> Object.keys({});
[]
Yes Yes Yes, this was my main purpose to do this:
/Applications/Apache\ CouchDB.app/Contents/Resources/couchdbx-core/lib/couchdb/bin/couchjs
Usage: couchjs [FILE]
The couchjs command runs the Apache CouchDB JavaScript interpreter.
The exit status is 0 for success or 1 for failure.
Options:
-h display a short help message and exit
-V display version information and exit
-H enable couchjs cURL bindings (only avaiable
if package was built with cURL available)
-S SIZE specify that the runtime should allow at
most SIZE bytes of memory to be allocated
-u FILE path to a .uri file containing the address
(or addresses) of one or more servers
Report bugs at .