Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aureooms-js-rational

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aureooms-js-rational

rational numbers code bricks for JavaScript

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

js-rational

Rational numbers code bricks for JavaScript.

let [ a , b ] = add( 1 , 10 , 1 , 5 ) ;
a / b === 3 / 10 ; // true

NPM 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-rational
# or
jspm install npm:aureooms-js-rational

duo

No install step needed for duo!

component

component install aureooms/js-rational

bower

bower install aureooms-js-rational

ender

ender add aureooms-js-rational

jam

jam install aureooms-js-rational

spm

spm install aureooms-js-rational --save

npm

npm install aureooms-js-rational --save

Require

jspm

let rational = require( "github:aureooms/js-rational" ) ;
// or
import rational from 'aureooms-js-rational' ;

duo

let rational = require( "aureooms/js-rational" ) ;

component, ender, spm, npm

let rational = require( "aureooms-js-rational" ) ;

bower

The script tag exposes the global variable rational.

<script src="bower_components/aureooms-js-rational/js/dist/rational.min.js"></script>

Alternatively, you can use any tool mentioned here.

jam

require( [ "aureooms-js-rational" ] , function ( rational ) { ... } ) ;

Use

let number = require( 'aureooms-js-number' ) ;
let add = rational._add( number.mul , number.add ) ;
let sub = rational._sub( number.mul , number.sub ) ;
let mul = rational._mul( number.mul ) ;
let div = rational._div( number.mul ) ;

Keywords

FAQs

Package last updated on 22 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc