@@ -8,15 +8,15 @@ let [ a , b ] = add( 1 , 10 , 1 , 5 ) ;
8
8
a / b === 3 / 10 ; // true
9
9
```
10
10
11
- [ ![ NPM license] ( http://img.shields.io/npm/l/aureooms- js-rational.svg?style=flat )] ( https://raw.githubusercontent.com/aureooms/js-rational/master/LICENSE )
12
- [ ![ NPM version] ( http://img.shields.io/npm/v/aureooms- js-rational.svg?style=flat )] ( https://www.npmjs.org/package/aureooms- js-rational )
13
- [ ![ Bower version] ( http://img.shields.io/bower/v/aureooms- js-rational.svg?style=flat )] ( http://bower.io/search/?q=aureooms- js-rational )
11
+ [ ![ NPM license] ( http://img.shields.io/npm/l/@ aureooms/ js-rational.svg?style=flat )] ( https://raw.githubusercontent.com/aureooms/js-rational/master/LICENSE )
12
+ [ ![ NPM version] ( http://img.shields.io/npm/v/@ aureooms/ js-rational.svg?style=flat )] ( https://www.npmjs.org/package/@ aureooms/ js-rational )
13
+ [ ![ Bower version] ( http://img.shields.io/bower/v/@ aureooms/ js-rational.svg?style=flat )] ( http://bower.io/search/?q=@ aureooms/ js-rational )
14
14
[ ![ Build Status] ( http://img.shields.io/travis/aureooms/js-rational.svg?style=flat )] ( https://travis-ci.org/aureooms/js-rational )
15
15
[ ![ Coverage Status] ( http://img.shields.io/coveralls/aureooms/js-rational.svg?style=flat )] ( https://coveralls.io/r/aureooms/js-rational )
16
16
[ ![ Dependencies Status] ( http://img.shields.io/david/aureooms/js-rational.svg?style=flat )] ( https://david-dm.org/aureooms/js-rational#info=dependencies )
17
17
[ ![ devDependencies Status] ( http://img.shields.io/david/dev/aureooms/js-rational.svg?style=flat )] ( https://david-dm.org/aureooms/js-rational#info=devDependencies )
18
18
[ ![ Code Climate] ( http://img.shields.io/codeclimate/github/aureooms/js-rational.svg?style=flat )] ( https://codeclimate.com/github/aureooms/js-rational )
19
- [ ![ NPM downloads per month] ( http://img.shields.io/npm/dm/aureooms- js-rational.svg?style=flat )] ( https://www.npmjs.org/package/aureooms- js-rational )
19
+ [ ![ NPM downloads per month] ( http://img.shields.io/npm/dm/@ aureooms/ js-rational.svg?style=flat )] ( https://www.npmjs.org/package/@ aureooms/ js-rational )
20
20
[ ![ GitHub issues] ( http://img.shields.io/github/issues/aureooms/js-rational.svg?style=flat )] ( https://github.com/aureooms/js-rational/issues )
21
21
[ ![ Inline docs] ( http://inch-ci.org/github/aureooms/js-rational.svg?branch=master&style=shields )] ( http://inch-ci.org/github/aureooms/js-rational )
22
22
@@ -35,7 +35,7 @@ and [npm](https://github.com/npm/npm).
35
35
``` terminal
36
36
jspm install github:aureooms/js-rational
37
37
# or
38
- jspm install npm:aureooms- js-rational
38
+ jspm install npm:@ aureooms/ js-rational
39
39
```
40
40
### duo
41
41
No install step needed for duo!
@@ -47,35 +47,35 @@ component install aureooms/js-rational
47
47
48
48
### bower
49
49
``` terminal
50
- bower install aureooms- js-rational
50
+ bower install @ aureooms/ js-rational
51
51
```
52
52
53
53
### ender
54
54
``` terminal
55
- ender add aureooms- js-rational
55
+ ender add @ aureooms/ js-rational
56
56
```
57
57
58
58
### jam
59
59
``` terminal
60
- jam install aureooms- js-rational
60
+ jam install @ aureooms/ js-rational
61
61
```
62
62
63
63
### spm
64
64
``` terminal
65
- spm install aureooms- js-rational --save
65
+ spm install @ aureooms/ js-rational --save
66
66
```
67
67
68
68
### npm
69
69
``` terminal
70
- npm install aureooms- js-rational --save
70
+ npm install @ aureooms/ js-rational --save
71
71
```
72
72
73
73
## Require
74
74
### jspm
75
75
``` js
76
76
let rational = require ( " github:aureooms/js-rational" ) ;
77
77
// or
78
- import rational from ' aureooms- js-rational' ;
78
+ import rational from ' @ aureooms/ js-rational' ;
79
79
```
80
80
### duo
81
81
``` js
@@ -84,25 +84,25 @@ let rational = require( "aureooms/js-rational" ) ;
84
84
85
85
### component, ender, spm, npm
86
86
``` js
87
- let rational = require ( " aureooms- js-rational" ) ;
87
+ let rational = require ( " @ aureooms/ js-rational" ) ;
88
88
```
89
89
90
90
### bower
91
91
The script tag exposes the global variable ` rational ` .
92
92
``` html
93
- <script src =" bower_components/aureooms- js-rational/js/dist/rational.min.js" ></script >
93
+ <script src =" bower_components/@ aureooms/ js-rational/js/dist/rational.min.js" ></script >
94
94
```
95
95
Alternatively, you can use any tool mentioned [ here] ( http://bower.io/docs/tools/ ) .
96
96
97
97
### jam
98
98
``` js
99
- require ( [ " aureooms- js-rational" ] , function ( rational ) { ... } ) ;
99
+ require ( [ " @ aureooms/ js-rational" ] , function ( rational ) { ... } ) ;
100
100
```
101
101
102
102
## Use
103
103
104
104
``` js
105
- let number = require ( ' aureooms- js-number' ) ;
105
+ let number = require ( ' @ aureooms/ js-number' ) ;
106
106
let add = rational ._add ( number .mul , number .add ) ;
107
107
let sub = rational ._sub ( number .mul , number .sub ) ;
108
108
let mul = rational ._mul ( number .mul ) ;
0 commit comments