@aemforms/af-formatters

0.22.133 • Public • Published

Introduction

The module contains the apis to format the values in form fields as per CLDR spec

Installation

Save it as a dependency

npm i --save @aemforms/af-formatters

Usage

import {format} from '@aemforms/af-formatters'
const value = 1234
format(1234, 'en-US', 'num|currency') //outputs $1,234.00

const value = 2022-10-10
format(1234, 'en-US', 'date|MMM dd, y') //outputs Oct 10, 2022

License

Copyright 2022 Adobe All Rights Reserved.

NOTICE: All information contained herein is, and remains the property of Adobe and its suppliers, if any. The intellectual and technical concepts contained herein are proprietary to Adobe and its suppliers and are protected by all applicable intellectual property laws, including trade secret and copyright laws. Dissemination of this information or reproduction of this material is strictly forbidden unless prior written permission is obtained from Adobe.

Adobe permits you to use and modify this file solely in accordance with the terms of the Adobe license agreement accompanying it.

Readme

Keywords

none

Package Sidebar

Install

npm i @aemforms/af-formatters

Weekly Downloads

1,160

Version

0.22.133

License

Adobe Proprietary

Unpacked Size

81 kB

Total Files

11

Last publish

Collaborators

  • vdua
  • salilt
  • rismehta
  • nitigupt
  • cqguides
  • jalagari