Skip to content

Latest commit

 

History

History
56 lines (46 loc) · 1.33 KB

README.md

File metadata and controls

56 lines (46 loc) · 1.33 KB

next

A javascript OOP toolkit for mobile & modern web.

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.