@fastcms/utils
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

@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

Readme

Keywords

Package Sidebar

Install

npm i @fastcms/utils

Weekly Downloads

0

Version

4.0.0

License

MIT

Unpacked Size

6.89 kB

Total Files

7

Last publish

Collaborators

  • shiaohoo