{"id":26304474,"url":"https://github.com/peakmoney/whitelister","last_synced_at":"2025-05-12T18:43:16.697Z","repository":{"id":57397743,"uuid":"100739924","full_name":"peakmoney/whitelister","owner":"peakmoney","description":"Simple, basic filtering and validation tool for Node.js.","archived":false,"fork":false,"pushed_at":"2017-12-01T22:12:10.000Z","size":305,"stargazers_count":47,"open_issues_count":5,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-14T05:16:29.826Z","etag":null,"topics":["javascript","nodejs","parameters","utilities","validation","validation-library","whitelist","whitelist-validation","whitelisting","whitelisting-filter"],"latest_commit_sha":null,"homepage":"https://spireteam.github.io/whitelister/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peakmoney.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-18T18:30:01.000Z","updated_at":"2023-12-10T02:28:43.000Z","dependencies_parsed_at":"2022-08-31T15:20:44.426Z","dependency_job_id":null,"html_url":"https://github.com/peakmoney/whitelister","commit_stats":null,"previous_names":["spireteam/whitelister"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peakmoney%2Fwhitelister","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peakmoney%2Fwhitelister/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peakmoney%2Fwhitelister/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peakmoney%2Fwhitelister/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peakmoney","download_url":"https://codeload.github.com/peakmoney/whitelister/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243701452,"owners_count":20333631,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","nodejs","parameters","utilities","validation","validation-library","whitelist","whitelist-validation","whitelisting","whitelisting-filter"],"created_at":"2025-03-15T08:16:52.686Z","updated_at":"2025-03-15T08:16:53.299Z","avatar_url":"https://github.com/peakmoney.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Whitelister\n\nSimple, **dependency-free** filtering and validation tool for Node.js.\n\n[![Build Status](https://travis-ci.org/SpireTeam/whitelister.svg?branch=master)](https://travis-ci.org/SpireTeam/whitelister)\n\n## Quick Start\n\nUsing npm:\n\n`npm i --save whitelister`\n\nIn Node.js\n```js\nconst whitelister = require('whitelister');\n\nconst rules = {\n  q: 'string',\n  page: { type: 'integer', min: 1, default: 1 },\n  per_page: { type: 'integer', min: 1, max: 100, default: 20 },\n};\n\nconst params = { q: 'hello' };\n\nreturn whitelister(rules, params);\n// =\u003e { page: 1, per_page: 20, q: 'hello' };\n```\n\n## Documentation\n\nYou can find the full documentation on the website: [https://spireteam.github.io/whitelister/](https://spireteam.github.io/whitelister/)\n\n## License\n\nMIT\n\n## Changelog\n\n### v0.0.5\n#### Oct. 25, 2017\n* Ignore non-required properties with `undefined` values\n* Treat external errors differently than internal errors\n\n### v0.0.4\n#### Oct. 16, 2017\n* Ensure that `type` is treated like other `attributes`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeakmoney%2Fwhitelister","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeakmoney%2Fwhitelister","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeakmoney%2Fwhitelister/lists"}