0.7.9 • Published 8 months ago

kong-util v0.7.9

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
8 months ago

kong-util

Here are some codes I usually use. Some runs in any environment that supports JavaScript (ES6 and later); but some is usable only in browsers.

Also see demo, API documentation, and changelog.

in browsers

traditional way

<script src="https://cdn.jsdelivr.net/npm/kong-util/dist/all.js"></script>
<script>
    kongUtil.wait(100).then(() => console.log("tradition mode works"));

    kongUtil.use();
    $("body").append("this text will be appended to the bottom of the page.");
</script>

module way

<script type="module">
    import kongUtil from "https://cdn.jsdelivr.net/npm/kong-util/mod/all.mjs";

    kongUtil.$("body").append("this text will be appended to the bottom of the page.");

    kongUtil.use();
    wait(100).then(() => console.log("module mode works"));
</script>

in Node.js

install

npm install --save kong-util

use

// ES module
import kongUtil from "kong-util";

// both in ES module and CommonJS
import("kong-util").then(kongUtil => {
    // codes here
});
0.7.9

8 months ago

0.7.8

8 months ago

0.7.6

12 months ago

0.7.5

12 months ago

0.7.7

12 months ago

0.7.4

1 year ago

0.7.3

1 year ago

0.6.7

1 year ago

0.6.8

1 year ago

0.7.2

1 year ago

0.7.1

1 year ago

0.7.0

1 year ago

0.5.8

2 years ago

0.6.6

1 year ago

0.5.7

2 years ago

0.5.9

1 year ago

0.5.4

2 years ago

0.6.2

1 year ago

0.5.3

2 years ago

0.6.5

1 year ago

0.5.6

2 years ago

0.6.4

1 year ago

0.5.5

2 years ago

0.5.0

2 years ago

0.6.1

1 year ago

0.5.2

2 years ago

0.6.0

1 year ago

0.5.1

2 years ago

0.4.7

2 years ago

0.4.6

2 years ago

0.4.5

2 years ago

0.4.4

2 years ago

0.4.3

2 years ago

0.4.2

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.3

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago