• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

LICENSE-MITH A D30-Sep-20211.1 KiB2117

README.mdH A D15-Dec-20211.3 KiB5235

README.md

1[![npm](https://img.shields.io/npm/v/oojs.svg?style=flat)](https://www.npmjs.com/package/oojs)
2
3OOjs
4=================
5
6OOjs is a JavaScript library for working with objects.
7
8Key features include inheritance, mixins and utilities for working with objects.
9
10<pre lang="javascript">
11/* Example */
12function Animal() {}
13function Magic() {}
14function Unicorn() {
15    Animal.call( this );
16    Magic.call( this );
17}
18OO.inheritClass( Unicorn, Animal );
19OO.mixinClass( Unicorn, Magic );
20</pre>
21
22Quick start
23----------
24
25This library is available as an [npm](https://npmjs.org/) package! Install it right away:
26<pre lang="bash">
27npm install oojs
28</pre>
29
30Or clone the repo, `git clone https://gerrit.wikimedia.org/r/oojs/core`.
31
32ECMAScript 5
33----------
34
35OOjs requires a modern ECMAScript 5 environment. It is not necessarily compatible with ES3 engines (such as for IE 6-8). For ES3 environments, the old 1.x releases are available but not recommended.
36
37Versioning
38----------
39
40We use the Semantic Versioning guidelines as much as possible.
41
42Releases will be numbered in the following format:
43
44`<major>.<minor>.<patch>`
45
46For more information on SemVer, please visit http://semver.org/.
47
48Bug tracker
49-----------
50
51Found a bug? Please report it in the [issue tracker](https://phabricator.wikimedia.org/maniphest/task/edit/form/1/?projects=OOjs)!
52