rpn-computer
TypeScript icon, indicating that this package has built-in type declarations

1.6.0 • Public • Published

rpn-computer

Reverse Polish Notation implementation, written in Typescript

Install

npm install rpn-computer

yarn add rpn-computer

Usage

import rpn from 'rpn-computer' // ES modules

const rpn = require('rpn-computer') // CommonJS

rpn('2 5 +') // => 7

rpn(expression)

Evalutes the postfix expression and returns the result.

Package Sidebar

Install

npm i rpn-computer

Weekly Downloads

0

Version

1.6.0

License

MIT

Unpacked Size

3.9 kB

Total Files

6

Last publish

Collaborators

  • ruhaise