Reverse polish notation code bricks for JavaScript.
compile( isop , compute , [ ] , [ "1" , "2" , "+" , "4" , "*" ] ) ; // 12
Can be managed through jspm, duo, component, bower, ender, jam, spm, and npm.
jspm install github:aureooms/js-rpn
# or
jspm install npm:@aureooms/js-rpn
No install step needed for duo!
component install aureooms/js-rpn
bower install @aureooms/js-rpn
ender add @aureooms/js-rpn
jam install @aureooms/js-rpn
spm install @aureooms/js-rpn --save
npm install @aureooms/js-rpn --save
let rpn = require( "github:aureooms/js-rpn" ) ;
// or
import rpn from '@aureooms/js-rpn' ;
let rpn = require( "aureooms/js-rpn" ) ;
let rpn = require( "@aureooms/js-rpn" ) ;
The script tag exposes the global variable rpn
.
<script src="bower_components/@aureooms/js-rpn/js/dist/rpn.min.js"></script>
Alternatively, you can use any tool mentioned here.
require( [ "@aureooms/js-rpn" ] , function ( rpn ) { ... } ) ;
See test file.