@aemforms/af-custom-functions
Version:
Provides a collection of custom functions designed to aid creation of adaptive form
26 lines (18 loc) • 598 B
Markdown
# af-custom-functions
[](https://www.npmjs.com/package/@aemforms/af-custom-functions)
Provides a collection of custom functions designed to aid creation of adaptive form in AEM.
## Installation
```bash
npm install @aemforms/af-custom-funtions
```
## Usage
```bash
// In user's code (ESM)
import { validateURL, navigateTo, toObject } from '@aemforms/af-custom-functions';
```
```bash
// Usage
const result = validateURL('https://example.com');
navigateTo('https://example.com', '_blank');
const obj = toObject('{"key": "value"}');
```