skylark-langx
v0.9.4
Published
A simple JavaScript language extension library, including class support, Evented class, Deferred class and some commonly used tool functions.
Downloads
11
Maintainers
Readme
skylark-langx
A simple JavaScript language extension library, including class support, Evented class, Deferred class and some commonly used tool functions.
What's included
- Class Support
- Evented
- Deferred
- Tool functions
Installation
There are multiple ways to install the skylark-langx library.
- npm
npm install skylark-langx --save - bower
bower install skylark-langx - cdn
http://registry.skylarkjs.org/packages/skylark-utils/v0.9.1/skylark-langx.js or
http://registry.skylarkjs.org/packages/skylark-utils/v0.9.1/uncompressed/skylark-langx.js
Usage
- Using the skylark-langx library for a AMD module.
require({
'paths': {
'skylark-langx': 'http://registry.skylarkjs.org/packages/skylark-langx/v0.9.1/skylark-langx'
}
}, ['skylark-langx'], function(slangx) {
// slangx.isArrayLike(a)
});
- Using the skylark-langx library for a global object named skylarkjs.
<script type="text/javascript" src="http://registry.skylarkjs.org/packages/skylark-langx/v0.9.1/skylark-langx.js"></script>
<script>
// skylarkjs.langx.isArrayLike(a);
</script>
- Using the skylark-langx library for a AMD package.
require({
'packages': [
{ 'name': 'skylark-langx', 'location': 'http://registry.skylarkjs.org/packages/skylark-langx/v0.9.1/skylark-langx/' }
]
}, ['skylark-langx/langx'], function(slangx) {
// slangx.isArrayLike(a);
});
API Document
skyalrk.js application framwork contains the above modules, so the module API documentation can refer to sklark.js's api doc.
- http://www.skylarkjs.org/api
Examples
Please access the following site for the execution of each example program under the "/examples" directory.
- http://www.skylarkjs.org/examples
- http://examples.skylarkjs.org/skylark-langx/
License
Released under the MIT