Skip to content

pot-pourri/rpn

Repository files navigation

Reverse polish notation code bricks for JavaScript.

compile( isop , compute , [ ] , [ "1" , "2" , "+" , "4" , "*" ] ) ; // 12

License NPM version Bower version Build Status Coverage Status Dependencies Status devDependencies Status Code Climate NPM downloads per month GitHub issues Inline docs

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.

About

reverse polish notation code bricks for JavaScript

Resources

License

Stars

Watchers

Forks

Packages

No packages published