{"id":22096506,"url":"https://github.com/uphold/itin-validator","last_synced_at":"2026-01-30T05:03:48.009Z","repository":{"id":57147321,"uuid":"43765755","full_name":"uphold/itin-validator","owner":"uphold","description":"Validate and mask a U.S. Individual Taxpayer Identification Number (ITIN)","archived":false,"fork":false,"pushed_at":"2023-04-09T21:35:09.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":57,"default_branch":"master","last_synced_at":"2025-09-30T06:46:13.549Z","etag":null,"topics":[],"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/uphold.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}},"created_at":"2015-10-06T17:16:17.000Z","updated_at":"2024-08-12T19:19:34.000Z","dependencies_parsed_at":"2023-07-24T23:57:51.539Z","dependency_job_id":null,"html_url":"https://github.com/uphold/itin-validator","commit_stats":null,"previous_names":["seegno/itin-validator"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/uphold/itin-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uphold%2Fitin-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uphold%2Fitin-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uphold%2Fitin-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uphold%2Fitin-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uphold","download_url":"https://codeload.github.com/uphold/itin-validator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uphold%2Fitin-validator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28904585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T04:02:34.702Z","status":"ssl_error","status_checked_at":"2026-01-30T04:02:33.562Z","response_time":66,"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":[],"created_at":"2024-12-01T04:11:21.114Z","updated_at":"2026-01-30T05:03:47.987Z","avatar_url":"https://github.com/uphold.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# itin-validator\nValidate and mask a U.S. Individual Taxpayer Identification Number (ITIN).\n\n## Status\n[![npm version][npm-image]][npm-url] [![build status][travis-image]][travis-url]\n\n## Installation\nInstall the package via `npm`:\n\n```sh\nnpm install itin-validator --save\n```\n\n## Usage\n### `isValid(value)`\nThis method validates if the given value is a valid `Individual Taxpayer Identification Number`.\n\n#### Arguments\n1. `value` _(*)_: The value to validate.\n\n#### Returns\n_(boolean)_:  Returns whether the input value is a valid ITIN or not.\n\n#### Example\n\n```js\nisValid({});\n// =\u003e false\n\nisValid('9-0-0700000');\n// =\u003e false\n\nisValid('900-70-0000');\n// =\u003e true\n\nisValid('900700000');\n// =\u003e true\n```\n\n--------------------------------------------------------------------------------\n\n### `mask(value)`\nThis method will help you protect this sensitive piece of information by obfuscating some digits.\n\n#### Arguments\n1. `value` _(*)_: The value to mask.\n\n#### Returns\n_(string)_: Returns the masked value by replacing value certain digits by 'X'.\n\n#### Example\n\n```js\nmask({});\n// Throws an Error.\n\nmask('9-0-0700000');\n// Throws an Error.\n\nmask('900-70-0000');\n// =\u003e XXX-XX-0000\n\nmask('900700000');\n// =\u003e XXXXX0000\n```\n\n--------------------------------------------------------------------------------\n\n## Tests\nTo test using a local installation of `node.js`:\n\n```sh\nnpm test\n```\n\nTo test using Docker exclusively:\n\n```sh\ndocker-compose run --rm sut\n```\n\n## Release\n\n```sh\nnpm version [\u003cnewversion\u003e | major | minor | patch] -m \"Release %s\"\n```\n\n## License\nMIT\n\n[npm-image]: https://img.shields.io/npm/v/itin-validator.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/itin-validator\n[travis-image]: https://img.shields.io/travis/uphold/itin-validator.svg?style=flat-square\n[travis-url]: https://img.shields.io/travis/uphold/itin-validator.svg?style=flat-square\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuphold%2Fitin-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuphold%2Fitin-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuphold%2Fitin-validator/lists"}