@fastcms/utilities
v2.1.4
Published
Common utilities for projects of @fastcms.
Downloads
8
Readme
@fastcms/utilities
Common utilities for projects of @fastcms.
Installation
Use npx to install peerdeps automatically or install peerDependencies and optionalDependencies with npm/yarn manually.
# Install using npm
$ npm info "@fastcms/utilities" peerDependencies optionalDependencies
$ npx install-peerdeps @fastcms/utilities
# Install using yarn
$ yarn add @fastcms/utilities
Usage
Named import from default index entry.
import { sleep } from '@fastcms/utilities';
console.log('before sleep');
await sleep(5000);
console.log('after sleep');
Or named import from dist file entry (better bundle size).
import { sleep } from '@fastcms/utilities/dist/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