Reverse Polish Notation implementation.
JavaScript
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.eslintrc.js
.gitattributes
.gitignore
.travis.yml
LICENSE.txt
README.md
index.js
package.json

README.md

rpn

Build Status Dependency Status

Reverse Polish Notation implementation.

Example

var rpn = require('rpn');

rpn('3 4 +');
// => 7

Installation

$ npm install rpn

API

var rpn = require('rpn');

rpn(expression)

Evalutes the postfix expression and returns the result.