2.0.0 • Published 9 years ago
aureooms-js-rpn v2.0.0
js-rpn
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.
Install
jspm
jspm install github:aureooms/js-rpn
# or
jspm install npm:aureooms-js-rpn
duo
No install step needed for duo!
component
component install aureooms/js-rpn
bower
bower install aureooms-js-rpn
ender
ender add aureooms-js-rpn
jam
jam install aureooms-js-rpn
spm
spm install aureooms-js-rpn --save
npm
npm install aureooms-js-rpn --save
Require
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.