UNPKG

rpn

Version:

Reverse Polish Notation implementation.

29 lines (18 loc) 312 B
# rpn Reverse Polish Notation implementation. ## Example ``` javascript var rpn = require('rpn'); rpn('3 4 +'); // => 7 ``` ## Installation ``` bash $ npm install rpn ``` ## API ``` javascript var rpn = require('rpn'); ``` ### rpn(expression) Evaluates the postfix `expression` and returns the result.