rpn

4.0.0 • Public • Published

rpn

Reverse Polish Notation implementation.

Example

var rpn = require('rpn');

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

Installation

$ npm install rpn

API

var rpn = require('rpn');

rpn(expression)

Evaluates the postfix expression and returns the result.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 4.0.0
    1
    • latest

Version History

Package Sidebar

Install

npm i rpn

Weekly Downloads

8

Version

4.0.0

License

MIT

Unpacked Size

3.35 kB

Total Files

4

Last publish

Collaborators

  • kenan