reverse-polish-notation
Reverse Polish Notation - Javascript implementation
Last updated 5 years ago by runk .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install reverse-polish-notation 
SYNC missed versions from official npm registry.

node-reverse-polish-notation Build Status

Reverse Polish Notation - Native Javascript implemenation

Installation

npm i reverse-polish-notation

Usage

** see code samples in ./test directory **

var rpn = require('reverse-polish-notation')
console.log(rpn('5 1 2 + 4 * + 3 -')) // prints "14"
console.log(rpn('3 4 5 * -')) // prints "-17"
console.log(rpn('3.1 -4.3 5.6 * -')) // prints "27.18"

References

License

MIT

Current Tags

  • 0.1.0                                ...           latest (5 years ago)

1 Versions

  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (1)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |