|
1 | 1 | [js-collections](http://aureooms.github.io/js-collections)
|
2 | 2 | ==
|
3 | 3 |
|
4 |
| -Collections code bricks for JavaScript. Parent is |
| 4 | +Collections library for JavaScript. Parent is |
5 | 5 | [js-data-structures](https://github.com/aureooms/js-data-structures).
|
6 | 6 |
|
7 | 7 | JavaScript version of
|
|
32 | 32 | [](https://github.com/aureooms/js-collections/issues)
|
33 | 33 | [](https://aureooms.github.io/js-collections/source.html)
|
34 | 34 |
|
35 |
| -Can be managed through [jspm](https://github.com/jspm/jspm-cli), |
36 |
| -[duo](https://github.com/duojs/duo), |
37 |
| -[component](https://github.com/componentjs/component), |
38 |
| -[bower](https://github.com/bower/bower), |
39 |
| -[ender](https://github.com/ender-js/Ender), |
40 |
| -[jam](https://github.com/caolan/jam), |
41 |
| -[spm](https://github.com/spmjs/spm), |
42 |
| -and [npm](https://github.com/npm/npm). |
43 |
| - |
44 |
| -## Install |
45 |
| - |
46 |
| -### jspm |
47 |
| -```terminal |
48 |
| -jspm install github:aureooms/js-collections |
49 |
| -# or |
50 |
| -jspm install npm:aureooms-js-collections |
51 |
| -``` |
52 |
| -### duo |
53 |
| -No install step needed for duo! |
54 |
| - |
55 |
| -### component |
56 |
| -```terminal |
57 |
| -component install aureooms/js-collections |
58 |
| -``` |
59 |
| - |
60 |
| -### bower |
61 |
| -```terminal |
62 |
| -bower install aureooms-js-collections |
63 |
| -``` |
64 |
| - |
65 |
| -### ender |
66 |
| -```terminal |
67 |
| -ender add aureooms-js-collections |
68 |
| -``` |
69 |
| - |
70 |
| -### jam |
71 |
| -```terminal |
72 |
| -jam install aureooms-js-collections |
73 |
| -``` |
74 |
| - |
75 |
| -### spm |
76 |
| -```terminal |
77 |
| -spm install aureooms-js-collections --save |
78 |
| -``` |
79 |
| - |
80 |
| -### npm |
81 |
| -```terminal |
82 |
| -npm install aureooms-js-collections --save |
83 |
| -``` |
84 |
| - |
85 |
| -## Require |
86 |
| -### jspm |
87 |
| -```js |
88 |
| -let collections = require( "github:aureooms/js-collections" ) ; |
89 |
| -// or |
90 |
| -import collections from 'aureooms-js-collections' ; |
91 |
| -``` |
92 |
| -### duo |
93 |
| -```js |
94 |
| -let collections = require( "aureooms/js-collections" ) ; |
95 |
| -``` |
96 |
| - |
97 |
| -### component, ender, spm, npm |
98 |
| -```js |
99 |
| -let collections = require( "aureooms-js-collections" ) ; |
100 |
| -``` |
101 |
| - |
102 |
| -### bower |
103 |
| -The script tag exposes the global variable `collections`. |
104 |
| -```html |
105 |
| -<script src="bower_components/aureooms-js-collections/js/dist/collections.min.js"></script> |
106 |
| -``` |
107 |
| -Alternatively, you can use any tool mentioned [here](http://bower.io/docs/tools/). |
108 |
| - |
109 |
| -### jam |
110 |
| -```js |
111 |
| -require( [ "aureooms-js-collections" ] , function ( collections ) { ... } ) ; |
112 |
| -``` |
113 |
| - |
114 |
| -## Use |
115 |
| - |
116 |
| -See Python's docs: |
117 |
| - |
118 |
| - - [collections](https://docs.python.org/3.6/library/collections.html) |
119 |
| - - [heapq](https://docs.python.org/3.6/library/heapq.html) |
120 |
| - - [bisect](https://docs.python.org/3.6/library/bisect.html) |
121 |
| - |
122 | 35 | ### Some changes w.r.t. Python's API
|
123 | 36 |
|
124 | 37 | #### `heapq`
|
|
0 commit comments