noeq
v1.3.2
Published
!= a RPN calculator using math.js (http://mathjs.org/)
Downloads
14
Readme
!= NoEq
!= a <3 RPN calculator using math.js
On top of math.js a powerful and extensible and easily customize RPN calculator UX oriented.
Due the current Keymap, any operation will be executed after pressing the key, with the arguments on the stack or inline with the last one. Thus you not need to press enter to execute operation.
The decimal point is Mac OS X friendly, you can use "." or ",", so you can use the Bloq Num of your keyboard.
You ca use the cursors to perform stack manipulation.
Sadly if you want to put a negative number on the stack or operate you need to scape the '-' symbol like:
!= '-0.5
The name "NoEq" is a small tribute to those great HP's RPN calculators and his No Equals stuff.
Install and Run
$ npm install noeq -g
$ noeq
Usage: noeq [options]
Options:
-V, --version output the version number
-p, --prompt [type] Your prompt for NoEq, default: !=
-s, --precision [type] precision for mathjs library value [0..16], default: 10 (http://mathjs.org/docs/reference/functions/format.html)
-l, --logLevel [type] level for logging (dev porpouses), default: OFF
-h, --help output usage information
Keymap:
- ctr-c: 'exit' Stops NoEq and prompt asking if the current stack must be persisted on a file for further use on the next session.
Stack manipulation
- up: 'reverse' Performs a reverse operation over the stack elements
- left: 'drop' Deletes the first element on the stack
- right: 'swap' Swaps the two first elements on the stack
- down: 'first' Swaps position of the first and last elements on the stack
- ctr-z: 'undo' Performs an undo over the stack, return it to the previous state