rpn-postfix-cli

0.0.4 • Public • Published

RPN Calculator CLI

A Reverse Polish Notation/Postfix calculator for the command line.

Installation and Usage

npm i -g rpn-postfix-cli && rpn <expression>

or

npx rpn-postfix-cli <expression>

Examples

rpn
rpn "8 9 * 2 /"
echo "4 4 4 5 + - *" | rpn

Options

usage:
       rpn [expression]

options:
       --help, -h: prints this message
      
if no arguments are passed, opens an interactive repl in current shell 

------------------
REPL options
------------------

quit: closes the repl
reset: removes all values currently in stack
stack: prints all values currently in stack
verbose: prints additional information for each evaluation 
help: prints this message

Package Sidebar

Install

npm i rpn-postfix-cli

Weekly Downloads

1

Version

0.0.4

License

MIT

Unpacked Size

5.86 kB

Total Files

4

Last publish

Collaborators

  • ixc7