npm

Need private packages and team management tools?Check out npm Orgs. »

reverse-polish-notation

0.1.0 • Public • Published

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

install

npm i reverse-polish-notation

Downloadsweekly downloads

1

version

0.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability