{"id":21033464,"url":"https://github.com/electerious/limit-number","last_synced_at":"2025-06-16T02:09:09.640Z","repository":{"id":14127690,"uuid":"76071480","full_name":"electerious/limit-number","owner":"electerious","description":"Limit a number between a min and max value.","archived":false,"fork":false,"pushed_at":"2022-10-01T13:59:13.000Z","size":29,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-15T13:43:57.418Z","etag":null,"topics":["limit","max","min","number"],"latest_commit_sha":null,"homepage":null,"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/electerious.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}},"created_at":"2016-12-09T21:27:03.000Z","updated_at":"2025-03-10T16:25:54.000Z","dependencies_parsed_at":"2023-01-11T18:44:58.984Z","dependency_job_id":null,"html_url":"https://github.com/electerious/limit-number","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/electerious/limit-number","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electerious%2Flimit-number","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electerious%2Flimit-number/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electerious%2Flimit-number/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electerious%2Flimit-number/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/electerious","download_url":"https://codeload.github.com/electerious/limit-number/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electerious%2Flimit-number/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260083862,"owners_count":22956409,"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":["limit","max","min","number"],"created_at":"2024-11-19T12:57:14.622Z","updated_at":"2025-06-16T02:09:09.614Z","avatar_url":"https://github.com/electerious.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# limit-number\n\n![Build](https://github.com/electerious/limit-number/workflows/Build/badge.svg) [![Coverage Status](https://coveralls.io/repos/github/electerious/limit-number/badge.svg?branch=master)](https://coveralls.io/github/electerious/limit-number?branch=master)\n\nLimit a number between a min and max value.\n\n## Install\n\n```\nnpm install limit-number\n```\n\n## Usage\n\n```js\nconst limit = require('limit-number')\n\nlimit(0, 10, 5) // 5\nlimit(0, 10, 15) // 10\nlimit(0, 10, -5) // 0\n```\n\n## Parameters\n\n- `min` `{Number}` Min number.\n- `max` `{Number}` Max number.\n- `num` `{Number}` Number.\n\n## Returns\n\n- `{Number}` Limited number.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felecterious%2Flimit-number","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felecterious%2Flimit-number","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felecterious%2Flimit-number/lists"}