Matches and evaluates conditional expressions in gyp files

npm install gyp-conditions
18 downloads in the last day
117 downloads in the last week
536 downloads in the last month


This implements a large portion of python's expression-level syntax, since that's what gyp uses in its expressions.

It wouldn't be hard to expand this to a full python parser, though the interpreter part would grow a lot if actually running the code were a goal.

npm loves you