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.21%)
JavaScript (0.79%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
1,986
Last Day
2
Last Week
44
Last Month
79
Last Year
508
19 Commits
1 Watching
1 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
1.2.7
Package Id
@jdlien/validator-utils@1.2.7
Unpacked Size
19.59 kB
Size
7.10 kB
File Count
4
NPM Version
10.2.4
Node Version
21.6.0
Publised On
04 Mar 2024
Cumulative downloads
Total Downloads
Last day
0%
2
Compared to previous day
Last week
1,366.7%
44
Compared to previous week
Last month
887.5%
79
Compared to previous month
Last year
-65.6%
508
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.
No security vulnerabilities found.