
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
validat
?Validation of input parameters in the GulfStream package.
npm i validat
Import the library in your code:
const validat = require('validat');
validat.input({
"source": "3652DB1AFBC5D414DBCAF5920F741FF93B1ED9E5",
"imdb_id": "0944947",
"tmdb_id": 1399,
"douban_id": 26584183,
"kp_id": "464963",
"tmdb_key": "e547e17d4e91c3e62a571656cd1ccaff",
"imdb_key": "966f4f4f",
"voice": "en",
"subtitle": "it",
"season": "1",
"episode": "1-5",
"quality": "1080p",
"release": "HBO",
"proxy": "login:pass@192.168.0.1:80," +
"login:pass@192.168.0.2:8080",
"adult": "The video title",
"oauth": "{\"login\":\"user\"}",
"metafilm": "{\"name\":\"Title\"}"
}).then(params => {
console.log(params);
});
//{ source: '3652DB1AFBC5D414DBCAF5920F741FF93B1ED9E5',
// imdb_id: '0944947',
// tmdb_id: '1399',
// douban_id: '26584183',
// kp_id: '464963',
// tmdb_key: 'e547e17d4e91c3e62a571656cd1ccaff',
// imdb_key: '966f4f4f',
// voice: 'en',
// subtitle: 'it',
// season: '1',
// episode: [ '1', '2', '3', '4', '5' ],
// quality: '1080p',
// release: 'HBO',
// proxy:
// [ { host: '192.168.0.1', port: '80', auth: {
// username: 'login', password: 'pass'
// } },
// { host: '192.168.0.2', port: '8080', auth: {
// username: 'login', password: 'pass'
// } } ],
// adult: 'The video title',
// oauth: { login: 'user' },
// metafilm: { name: 'Title' } }
validat.output({
"imdb_id": "4688388",
"name": "Hello World",
"otherKey": "otherValue"
}).then(params => {
console.log(params);
});
//{ imdb_id: '4688388',
// name: 'Hello World' }
npm test
FAQs
Validation of input/output parameters in the GulfStream package.
The npm package validat receives a total of 2 weekly downloads. As such, validat popularity was classified as not popular.
We found that validat 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
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.