skylark-langx

0.9.4 • Public • Published

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.

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.

Examples

Please access the following site for the execution of each example program under the "/examples" directory.

License

Released under the MIT

Package Sidebar

Install

npm i skylark-langx

Weekly Downloads

3

Version

0.9.4

License

MIT

Last publish

Collaborators

  • hudaokeji