-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
132 lines (114 loc) · 7.85 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>mout : Modular JavaScript Utilities</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
<meta property="og:url" content="http://moutjs.com" />
<meta property="og:title" content="mout : Modular JavaScript Utilities" />
<meta property="og:description" content="mout is a collection of modular JavaScript utilities that can be used in the browser as AMD modules or on node.js (without any overhead). It provides many helper methods similar to those found on other languages standard libraries (ie. Python, Ruby, PHP)" />
<meta property="og:image" content="http://moutjs.com/gravatar.png" />
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-1247729-20']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div id="wrapper">
<a href="http://github.com/mout/mout">
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub">
</a>
<div class="download">
<a href="http://github.com/mout/mout/zipball/v0.11.0">
<img border="0" width="90" src="http://github.com/images/modules/download/zip.png"></a>
<a href="http://github.com/mout/mout/tarball/v0.11.0">
<img border="0" width="90" src="http://github.com/images/modules/download/tar.png"></a>
</div>
<a href="http://moutjs.com/" id="logo">
<h1>mout</h1>
<h2>Modular JavaScript Utilities</h2>
</a>
<div id="intro">
<p>
<strong>MOUT</strong> is a collection of modular JavaScript
utilities that can be used in the browser as AMD modules or
on node.js. <small>- modules are
converted into node.js format during <code>npm publish</code> using
<a href="https://github.com/millermedeiros/nodefy/">nodefy</a> -</small>
It provides many helper methods similar to those found on
other languages standard libraries <small>(ie. Python,
Ruby, PHP)</small>
</p>
<p>
The biggest difference between other existing solutions is
that you can choose to load only the modules/functions that
you need, no extra overhead or complex build systems
required. It also provides a clean and consistent API and
normalizes the behavior across multiple browsers/environments.
All batteries included.
</p>
<p>
More about <a href="http://blog.millermedeiros.com/mout-and-modularity/">MOUT history and philosophy</a>.
</p>
</div>
<h3>Example</h3>
<p>Each method is a separate module, so you can require only the methods that you need or a whole package:</p>
<pre class="syntax"><span class="c1">// you can load individual methods (recommended)</span>
<span class="kd">var</span> <span class="nx">map</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">'mout/array/map'</span><span class="p">);</span>
<span class="nx">map</span><span class="p">([</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">],</span> <span class="kd">function</span><span class="p">(</span><span class="nx">val</span><span class="p">){</span> <span class="k">return</span> <span class="nx">val</span> <span class="o">*</span> <span class="nx">val</span><span class="p">;</span> <span class="p">});</span> <span class="c1">// [1, 4]</span>
<span class="c1">// a single package</span>
<span class="kd">var</span> <span class="nx">stringUtils</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">'mout/string'</span><span class="p">);</span>
<span class="nx">stringUtils</span><span class="p">.</span><span class="nx">camelCase</span><span class="p">(</span><span class="s1">'Foo Bar'</span><span class="p">);</span> <span class="c1">// "fooBar"</span>
<span class="c1">// or the whole lib</span>
<span class="kd">var</span> <span class="nx">mout</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">'mout'</span><span class="p">);</span>
<span class="nx">console</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span> <span class="nx">mout</span><span class="p">.</span><span class="nx">math</span><span class="p">.</span><span class="nx">clamp</span><span class="p">(</span><span class="mi">17</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">10</span><span class="p">)</span> <span class="p">);</span> <span class="c1">// 10</span>
</pre>
<h3>API Documentation</h3>
<ul>
<li><a href="./docs/latest">latest</a></li>
<li><a href="./docs/v0.1.0">v0.1</a></li>
<li><a href="./docs/v0.2.0">v0.2</a></li>
<li><a href="./docs/v0.3.0">v0.3</a></li>
<li><a href="./docs/v0.4.0">v0.4</a></li>
<li><a href="./docs/v0.6.0">v0.6</a></li>
<li><a href="./docs/v0.7.0">v0.7</a></li>
<li><a href="./docs/v0.8.0">v0.8</a></li>
<li><a href="./docs/v0.9">v0.9</a></li>
<li><a href="./docs/v0.10">v0.10</a></li>
<li><a href="./docs/v0.11">v0.11</a></li>
</ul>
<h3>FAQ / Wiki / IRC</h3>
<p>For info about how to become a contributor, project decisions, migration tips, use the <a href="https://github.com/mout/mout/wiki">wiki as a reference</a>.</p>
<p>We also have an IRC channel <strong>#moutjs</strong> at <a href="http://webchat.freenode.net/?channels=moutjs">irc.freenode.net</a></p>
<h3>Download</h3>
<p>mout is available as a node.js module</p>
<pre><code>npm install mout</code></pre>
<p>or as AMD modules to be used on browsers.</p>
<pre><code>bower install mout</code></pre>
<p>
you can also download the source files <a href="https://github.com/mout/mout/tags">directly from github</a>
and/or clone the git repository:
</p>
<pre><code>git clone https://github.com/mout/mout.git</code></pre>
<h3>Author / Contributors</h3>
<p>
This project was formerly known as amd-utils <small>(original work done by <a href="http://blog.millermedeiros.com">Miller Medeiros</a>)</small>
and have <a href="https://github.com/mout/mout/graphs/contributors">multiple contributors</a>.
</p>
<p>
It borrows features and is inspired by multiple open source projects like the PHP, python and Ruby
standard libraries, underscore.js, lodash, prototype.js and many others but some similarities are
just pure coincidence.
</p>
<h3>License</h3>
<p>Released under the <a href="http://opensource.org/licenses/MIT">MIT license</a>.</p>
</div>
</body>
</html>