{"id":19737747,"url":"https://github.com/softwareventures/is-integer-in-range","last_synced_at":"2025-04-30T05:30:40.921Z","repository":{"id":38040812,"uuid":"245977092","full_name":"softwareventures/is-integer-in-range","owner":"softwareventures","description":"Tests if a value is an integer in a specified range","archived":false,"fork":false,"pushed_at":"2024-11-11T19:11:46.000Z","size":2162,"stargazers_count":0,"open_issues_count":10,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-11T20:20:14.019Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/softwareventures.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2020-03-09T08:08:09.000Z","updated_at":"2024-08-07T03:13:15.000Z","dependencies_parsed_at":"2023-12-10T10:25:05.516Z","dependency_job_id":"5869cff2-136c-43d2-9642-fc5150293113","html_url":"https://github.com/softwareventures/is-integer-in-range","commit_stats":{"total_commits":403,"total_committers":4,"mean_commits":100.75,"dds":"0.46153846153846156","last_synced_commit":"e97b8851e711429b1ee214e12b95ce3e869c703e"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softwareventures%2Fis-integer-in-range","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softwareventures%2Fis-integer-in-range/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softwareventures%2Fis-integer-in-range/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softwareventures%2Fis-integer-in-range/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softwareventures","download_url":"https://codeload.github.com/softwareventures/is-integer-in-range/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224175776,"owners_count":17268389,"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":[],"created_at":"2024-11-12T01:12:10.483Z","updated_at":"2024-11-12T01:12:11.063Z","avatar_url":"https://github.com/softwareventures.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-integer-in-range\n\nTests if a value is an integer in a specified range.\n\nThe range is inclusive of the start and end values.\n\n## Install\n\n```bash\nnpm install --save is-integer-in-range\n```\n\nor\n\n```bash\nyarn add is-integer-in-range\n```\n\n## Examples\n\n```typescript\nimport isIntegerInRange from \"is-integer-in-range\";\nisIntegerInRange(5, 1, 10); // -\u003e true\nisIntegerInRange(5.1, 1, 10); // -\u003e false\nisIntegerInRange(0, 1, 10); // -\u003e false\nisIntegerInRange(1, 1, 10); // -\u003e true\nisIntegerInRange(10, 1, 10); // -\u003e true\nisIntegerInRange(11, 1, 10); // -\u003e false\n```\n\n## API\n\n### isIntegerInRange\n\nTests if the specified value is an integer in the specified range.\n\nThe range is inclusive of the start and end values.\n\n```typescript\nexport default function isIntegerInRange(\n    value: number,\n    start: number,\n    end: number\n): boolean;\n```\n\n### isIntegerInRangeFn\n\nCurried variant of `isIntegerInRange`.\n\nTakes a range specified as a start and end value, and returns a function that\ntests if a specified value is within the range.\n\nThe range is inclusive of the start and end values.\n\n```typescript\nexport function isIntegerInRangeFn(\n    start: number,\n    end: number\n): (value: number) =\u003e boolean;\n```\n\n## See also\n\n-   [is-integer](https://www.npmjs.com/package/is-integer)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftwareventures%2Fis-integer-in-range","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftwareventures%2Fis-integer-in-range","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftwareventures%2Fis-integer-in-range/lists"}