4.0.0 • Published 4 years ago
@fastcms/utils v4.0.0
@fastcms/utils
Common utils for projects of @fastcms
Installation
Use npx to install peerdeps automatically or install peerDependencies and optionalDependencies with npm/pnpm manually.
# Install using npm
$ npm info "@fastcms/utils" peerDependencies optionalDependencies
$ npx install-peerdeps @fastcms/utils
# Install using pnpm
$ pnpm add @fastcms/utilsUsage
Named import from default index entry.
import { sleep } from '@fastcms/utils';
console.log('before sleep');
await sleep(5000);
console.log('after sleep');Or named import from separate file entry (better bundle size).
import { sleep } from '@fastcms/utils/debug';
console.log('before sleep');
await sleep(5000);
console.log('after sleep');License
The codebase and documentation in this repository are released under the MIT License