conversions
An Effect replacement to the native JavaScript Intl API: date and number parsing/formatting, sscanf/sprintf templating, number rounding
All exports follow the CV-prefix naming convention to avoid name collisions with other libraries;
Platform-independent, well tested and documented, optimized for tree-shaking, 100% Typescript, 100% functional.
Can also be used by non-Effect users.
→ API
→ GETTING STARTED
→ DONATE
Any donations would be much appreciated
Please star the repo if you find it useful!
→ INSTALLING
Depending on the package manager you use, run one of the following commands in your terminal:
npm:
npm install effect @parischap/effect-lib @parischap/conversionspnpm:
pnpm add effect @parischap/effect-lib @parischap/conversionsyarn:
yarn add effect @parischap/effect-lib @parischap/conversions
→ IMPORTING (WITH OPTIMIZED TREE-SHAKING)
This library exports EcmaScript and CommonJS modules.
It offers named imports from the barrel:
import { CVDateTime } from '@parischap/pretty-print';and namespace imports from individual modules (recommended when tree-shaking matters):
import * as CVDateTime from '@parischap/pretty-print/CVDateTime';