1.0.0 • Published 4 years ago
yukikaze v1.0.0
Yukikaze
A modern Interval implementation in TypeScript
Browser
https://unpkg.com/yukikaze@{VERSION}/lib/index.min.js
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="description" content="Timer">
<meta name="keywords" content="HTML,JavaScript,Timer">
<meta name="author" content="KurozeroPB">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Timer</title>
</head>
<body>
<script src="https://unpkg.com/yukikaze@{VERSION}/lib/index.min.js"></script>
<script lang="javascript">
let i = 0;
const interval = new Yukikaze();
interval.run(() => console.log(i++), 2000);
</script>
</body>
</html>
Node
yarn add yukikaze
or npm i --save yukikaze
const Yukikaze = require("yukikaze");
let i = 0;
const interval = new Yukikaze();
interval.run(() => console.log(i++), 2000);