4.0.0 • Published 2 years ago

@fastcms/utils v4.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

@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/utils

Usage

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

4.0.0

2 years ago

3.1.1

2 years ago

3.1.0

2 years ago

3.0.0

2 years ago