UNPKG

@aemforms/af-custom-functions

Version:

Provides a collection of custom functions designed to aid creation of adaptive form

26 lines (18 loc) 598 B
# af-custom-functions [![npm version](https://badge.fury.io/js/your-package.svg)](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"}'); ```