{"id":40604149,"url":"https://github.com/stetsd/univalid-strategy","last_synced_at":"2026-01-21T04:38:40.139Z","repository":{"id":57386529,"uuid":"123383801","full_name":"stetsd/univalid-strategy","owner":"stetsd","description":"Abstract class of strategy for univalid module (base API)","archived":false,"fork":false,"pushed_at":"2018-07-04T03:31:53.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-22T10:02:27.558Z","etag":null,"topics":["univalid","univalid-strategy","validation"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stetsd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-01T04:51:42.000Z","updated_at":"2018-07-04T03:31:55.000Z","dependencies_parsed_at":"2022-09-26T21:31:30.983Z","dependency_job_id":null,"html_url":"https://github.com/stetsd/univalid-strategy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stetsd/univalid-strategy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stetsd%2Funivalid-strategy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stetsd%2Funivalid-strategy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stetsd%2Funivalid-strategy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stetsd%2Funivalid-strategy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stetsd","download_url":"https://codeload.github.com/stetsd/univalid-strategy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stetsd%2Funivalid-strategy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28626553,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T02:47:06.670Z","status":"ssl_error","status_checked_at":"2026-01-21T02:45:44.886Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["univalid","univalid-strategy","validation"],"created_at":"2026-01-21T04:37:58.151Z","updated_at":"2026-01-21T04:38:37.184Z","avatar_url":"https://github.com/stetsd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# univalid-strategy\n\nAbstract class of strategy for [univalid](https://github.com/StetsD/univalid) module.\n\n\n## Install\n\n```sh\nnpm i univalid-strategy\n```\n\n\n## Usage\n\n```js\nconst UnivalidStrategy = require('univalid-strategy');\nclass UnivalidStrategyDefault extends UnivalidStrategy {\n    //...\n}\n```\n\n\n## API\n\nMethods are necessary for define and extend.\n\n### applyFilter(filter, val)\n\nTests the pattern matching of symbols (by event)\n\n**filter** - Type `string`\n\nIn current moment available patterns:\n* oL - only latin symbols\n* oC - only cyrillic symbols\n* oN - only numbers\n* oP - only numbers and latin symbols\n\n**val** - Type `string`\n\n\n### check()\n\n### getValidationHandlers()\n\n### set()\n\n### get()\n\n## OPTIONS\n\n### validHandlers\n\n```js\nconstructor(){\n    this.validHandlers = {\n        'required': (val) =\u003e {\n            let data = val ? ('' + val).trim() : '';\n            return !!data;\n        }\n    }\n}\n```\n## License\n\nISC©\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstetsd%2Funivalid-strategy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstetsd%2Funivalid-strategy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstetsd%2Funivalid-strategy/lists"}