
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
one-validation
Advanced tools
Regexp based validation collection for common internet validation tasks
This is a collection of regular expressions for general validation purposes. The basic design concept is to split up the regexes into semantic parts of the pattern to match. As an example a url consists of many parts like scheme, optional userinfo, subdomain, domain, toplevel domain, path, query and fragment. It is a lot easier to write a maintainable and reusable regular expression by mathing each of these parts individually and write a regex that combines the individual later.
The library includes a TLD whitelist that can be updated using make.
This module works as a NodeJS CommonJS module, a require.js AMD module and falls back to exposing itself in the global scope on one.validation
if included directly in the page.
Package managers:
npm install one-validation
bower install validation
validation.domain.test('foo.co.uk');
return true;
validation.domainIdn.test('hällo-test.de');
return true;
validation.email.test('test@foo.co.uk');
return true;
validation.domainIdn.test('test@hällo-test.de');
return true;
npm install
make
FAQs
Regexp based validation collection for common internet validation tasks
The npm package one-validation receives a total of 8,035 weekly downloads. As such, one-validation popularity was classified as popular.
We found that one-validation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.