
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
validator-extended
Advanced tools
###validator.js###
var validator = require('validatorExtended');
###node-validator-extended### The main purpose of this repo is to add redundancy functions that won't be added in the validator.js repository. These functions could be useful for some people.
####Validators#### The following functions have been added to the original Validator:
We now use mocha to perform tests.
npm install mocha -g
To run the test, just use mocha, assuming you're on the directory:
mocha
C:\wamp\www\Ayolan\Validator-extended>mocha
ValidatorExtended
#notNull()
V should return true when a value is present
V should return false when there is no value
#notEmpty()
V should return true when a value is present
V should return false when there is no value
#isEmpty()
V should return true when a value is present
V should return false when there is no value
The official validator library updates itself quite often, so I am most of the time out-of-date.
In order to provide the most recent version I have decided to write in the package.json the following dependency: "validator": "latest".
So you can just do npm update validator-extended and it will install the latest validator version in node_modules/validator.
But it won't work for the browser version, which requires a manual update from me and a new publish on npm. In this case just create an issue to ask for the latest version! I'll do it ASAP.
####Licence#### https://github.com/Ayolan/node-validator-extended/blob/master/LICENSE
You can obviously fork and add other functions. Please just check if they should not belong to the validator.js repository before! :)
FAQs
String validation and sanitization based on validator.js
We found that validator-extended demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.