{"id":37019657,"url":"https://github.com/kdmatrosov/validation-codes","last_synced_at":"2026-01-14T02:11:24.697Z","repository":{"id":41308832,"uuid":"128374580","full_name":"kdmatrosov/validation-codes","owner":"kdmatrosov","description":"Проверка ИНН/СНИЛС/ОГРН/ОГРНИП/БИК","archived":false,"fork":false,"pushed_at":"2024-08-06T16:51:13.000Z","size":1287,"stargazers_count":16,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-06T19:57:14.142Z","etag":null,"topics":["bik","inn","javascript","ogrn","ogrnip"],"latest_commit_sha":null,"homepage":"","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/kdmatrosov.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-06T09:21:55.000Z","updated_at":"2024-08-06T16:51:10.000Z","dependencies_parsed_at":"2024-08-06T19:41:31.901Z","dependency_job_id":null,"html_url":"https://github.com/kdmatrosov/validation-codes","commit_stats":{"total_commits":43,"total_committers":4,"mean_commits":10.75,"dds":"0.37209302325581395","last_synced_commit":"a41c06c63499e4ab8470c661038e73686a4c0a73"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/kdmatrosov/validation-codes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdmatrosov%2Fvalidation-codes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdmatrosov%2Fvalidation-codes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdmatrosov%2Fvalidation-codes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdmatrosov%2Fvalidation-codes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kdmatrosov","download_url":"https://codeload.github.com/kdmatrosov/validation-codes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdmatrosov%2Fvalidation-codes/sbom","scorecard":{"id":553162,"data":{"date":"2025-08-11","repo":{"name":"github.com/kdmatrosov/validation-codes","commit":"13e41151bc14487825be1354d02fda658f5839c9"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/6 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 24 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T11:30:49.171Z","repository_id":41308832,"created_at":"2025-08-20T11:30:49.172Z","updated_at":"2025-08-20T11:30:49.172Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bik","inn","javascript","ogrn","ogrnip"],"created_at":"2026-01-14T02:11:24.000Z","updated_at":"2026-01-14T02:11:24.686Z","avatar_url":"https://github.com/kdmatrosov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# validation-codes\n[![npm version](https://img.shields.io/npm/v/ru-validation-codes.svg)](https://www.npmjs.com/package/ru-validation-codes)\n[![downloads](https://img.shields.io/npm/dt/ru-validation-codes.svg)](https://www.npmjs.com/package/ru-validation-codes)\n[![license](https://img.shields.io/github/license/mashape/apistatus.svg?maxAge=2592000)](https://github.com/kdmatrosov/validation-codes/blob/master/LICENSE)\n\nПроверка ИНН/СНИЛС/ОГРН/ОГРНИП/БИК\n\n# install\n```npm i --save ru-validation-codes```\n\n# run tests\n```npm run test```\n\n# functions\n\ncheckINN(value) - проверка, что это 10/12и цифровой код ИНН с [вычислением контрольной суммы](https://ru.wikipedia.org/wiki/%D0%98%D0%B4%D0%B5%D0%BD%D1%82%D0%B8%D1%84%D0%B8%D0%BA%D0%B0%D1%86%D0%B8%D0%BE%D0%BD%D0%BD%D1%8B%D0%B9_%D0%BD%D0%BE%D0%BC%D0%B5%D1%80_%D0%BD%D0%B0%D0%BB%D0%BE%D0%B3%D0%BE%D0%BF%D0%BB%D0%B0%D1%82%D0%B5%D0%BB%D1%8C%D1%89%D0%B8%D0%BA%D0%B0)\n\ncheckSnils(value) - проверка, что это цифровой код формата ```123-456-789 01``` с [вычислением контрольной суммы](http://www.consultant.ru/document/cons_doc_LAW_124607/68ac3b2d1745f9cc7d4332b63c2818ca5d5d20d0/)\n\ncheckOgrn(value) - проверка, что это 13и цифровой код ОГРН с [вычислением контрольной суммы](https://ru.wikipedia.org/wiki/%D0%9E%D1%81%D0%BD%D0%BE%D0%B2%D0%BD%D0%BE%D0%B9_%D0%B3%D0%BE%D1%81%D1%83%D0%B4%D0%B0%D1%80%D1%81%D1%82%D0%B2%D0%B5%D0%BD%D0%BD%D1%8B%D0%B9_%D1%80%D0%B5%D0%B3%D0%B8%D1%81%D1%82%D1%80%D0%B0%D1%86%D0%B8%D0%BE%D0%BD%D0%BD%D1%8B%D0%B9_%D0%BD%D0%BE%D0%BC%D0%B5%D1%80)\n\ncheckOgrnip(value) - проверка, что это 15 цифровой код ОГРНИП с [вычислением контрольной суммы](http://www.temabiz.com/terminy/chto-takoe-ogrnip.html)\n\ncheckBik(value) - проверка, что это 9 цифровой код [БИК](https://ru.wikipedia.org/wiki/%D0%91%D0%B0%D0%BD%D0%BA%D0%BE%D0%B2%D1%81%D0%BA%D0%B8%D0%B9_%D0%B8%D0%B4%D0%B5%D0%BD%D1%82%D0%B8%D1%84%D0%B8%D0%BA%D0%B0%D1%86%D0%B8%D0%BE%D0%BD%D0%BD%D1%8B%D0%B9_%D0%BA%D0%BE%D0%B4)\n\n# how to use\n\n```js\nimport {\n    checkINN, \n    checkSnils, \n    checkOgrn, \n    checkOgrnip, \n    checkBik, \n    checkSnilsOnlyChecksum\n} from 'ru-validation-codes';\nconsole.log(checkINN('617547302703')); //false\nconsole.log(checkSnils('642-709-548 07')); //true\nconsole.log(checkOgrn('4057910142110')); //true\nconsole.log(checkOgrnip('313242342342332')); //false\nconsole.log(checkBik('044525225')); //true\n\n\nconsole.log(checkSnilsOnlyChecksum('642-709-548 07')); //true\nconsole.log(checkSnilsOnlyChecksum('642 709 548 07')); //true\nconsole.log(checkSnilsOnlyChecksum('64270954807')); //true\nconsole.log(checkSnilsOnlyChecksum(64270954807)); //true\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkdmatrosov%2Fvalidation-codes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkdmatrosov%2Fvalidation-codes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkdmatrosov%2Fvalidation-codes/lists"}