Gathering detailed insights and metrics for @jdlien/validator-utils
Gathering detailed insights and metrics for @jdlien/validator-utils
Gathering detailed insights and metrics for @jdlien/validator-utils
Gathering detailed insights and metrics for @jdlien/validator-utils
npm install @jdlien/validator-utils
Typescript
Module System
Node Version
NPM Version
TypeScript (99.2%)
JavaScript (0.8%)
Built with Next.js • Fully responsive • SEO optimized • Open source ready
Total Downloads
2,345
Last Day
1
Last Week
9
Last Month
41
Last Year
580
21 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Apr 17, 2025
Latest Version
1.2.8
Package Id
@jdlien/validator-utils@1.2.8
Unpacked Size
19.55 kB
Size
7.16 kB
File Count
4
NPM Version
11.0.0
Node Version
22.12.0
Published on
Apr 17, 2025
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
-25%
9
Compared to previous week
Last Month
24.2%
41
Compared to previous month
Last Year
-45.7%
580
Compared to previous year
This package is a library of utility functions that can be used for validating and sanitizing strings and numbers, especially for use in forms. This package is the dependency for the @jdlien/validator package.
This package was separated from Validator so that it could be used in other projects without pulling in the entire Validator package if you only need some of its validation and parsing functions without the form validation and error message functionality.
1npm install @jdlien/validator-utils 2 3# or 4 5yarn add @jdlien/validator-utils
Validator includes several utility functions that may be useful in your own code, so they are exported as part of the module. If you wish to use these, you may import the functions directly from the module as an object that contains all the functions:
1import * as validatorUtils from '@jdlien/validator' 2// you could assign the functions you need to more convenient variables 3const { dateFormat, formatDateTime } = validatorUtils
Here is a list of the utility functions:
Install dev dependencies:
1npm install
When running Vite, you may get an error like
Module did not self-register: '...\node_modules\canvas\build\Release\canvas.node'
If that happens, you
need to install the canvas module manually: bash npm rebuild canvas --update-binary
No vulnerabilities found.