Skip to content

hibikine/utils

Repository files navigation

@hibikine/utils

Build Status codecov License: MIT dependencies npm version

Utility functions.

Install

yarn add @hibikine/utils # or npm i @hibikine/utils --save

Functions

wait()

wait(ms: number): Promise<void>

Discussion

import { wait } from '@hibikine/utils';

(async () => {
  await wait(2000);
  console.log('Hello!'); // Show after 2 secounds
})();

Develop

yarn watch

Build

yarn build