@screaming/utils
Introduction
@screaming/utils is a collection of utility functions, written in TypeScript. TypeScript knowledge is not required, however, as the functions can be used in JavaScript-only projects as well!
Installation
TIP
@screaming/utils comes pre-installed in all @screaming/froggo projects.
Install with your favourite package manager:
sh
# yarn
yarn add @screaming/utils
# pnpm
pnpm install @screaming/utils
# npm
npm install @screaming/utils
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
Import as required:
ts
import { ... } from '@screaming/utils'
1
Deprecated Utilities
Some deprecated functions/classes are still available in @screaming/utils:
Accordion.tsAnimationController.tsappendChildren.tsBrowserChecker.tscreateAccordions.tsdelegateEvents.tsElementCache.tsEl.tsfindObjects.tsindex.tsmoveElAtBreakpoint.tsremoveChildren.tsupdateAttribute.ts
These can be imported like so:
ts
import { ... } from '@screaming/utils/deprecated'
1