@jswork/next

A javascript OOP toolkit for mobile.

Usage no npm install needed!

<script type="module">
  import jsworkNext from 'https://cdn.skypack.dev/@jswork/next';
</script>

README

next

A javascript OOP toolkit for mobile.

version license size download

installation

npm install --save @jswork/next

node

import nx from '@jswork/next';

const MyClass = nx.declare({
  statics:{
    init: function(){
      console.log('hello next!')
    }
  }
})

browser

<script type="text/javascript" src="https://unpkg.com/@jswork/next"></script>
<script type="text/javascript">
(function (nx, global) {
  nx.declare('myApp', {
    statics: {
      init: function () {
        alert('hello next!');
      }
    }
  });
}(nx, nx.GLOBAL));
</script>

license

Code released under the MIT license.