2.0.0 • Published 10 years ago
aureooms-js-rpn v2.0.0
js-rpn
Reverse polish notation code bricks for JavaScript.
compile( isop , compute , [ ] , [ "1" , "2" , "+" , "4" , "*" ] ) ; // 12Can be managed through jspm, duo, component, bower, ender, jam, spm, and npm.
Install
jspm
jspm install github:aureooms/js-rpn
# or
jspm install npm:aureooms-js-rpnduo
No install step needed for duo!
component
component install aureooms/js-rpnbower
bower install aureooms-js-rpnender
ender add aureooms-js-rpnjam
jam install aureooms-js-rpnspm
spm install aureooms-js-rpn --savenpm
npm install aureooms-js-rpn --saveRequire
jspm
let rpn = require( "github:aureooms/js-rpn" ) ;
// or
import rpn from 'aureooms-js-rpn' ;duo
let rpn = require( "aureooms/js-rpn" ) ;component, ender, spm, npm
let rpn = require( "aureooms-js-rpn" ) ;bower
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.
jam
require( [ "aureooms-js-rpn" ] , function ( rpn ) { ... } ) ;Use
See test file.