@jswork/next
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (15)

    Package Sidebar

    Install

    npm i @jswork/next

    Weekly Downloads

    120

    Version

    1.2.2

    License

    MIT

    Unpacked Size

    30.5 kB

    Total Files

    10

    Last publish

    Collaborators

    • afeiship