{"id":15383315,"url":"https://github.com/andreruffert/closest-number","last_synced_at":"2025-04-15T19:36:13.339Z","repository":{"id":9626048,"uuid":"62726394","full_name":"andreruffert/closest-number","owner":"andreruffert","description":"🔢 Find the closest number out of an array to a specific value","archived":false,"fork":false,"pushed_at":"2025-03-17T21:08:08.000Z","size":230,"stargazers_count":4,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T08:17:13.182Z","etag":null,"topics":["array","closest","closest-number","number"],"latest_commit_sha":null,"homepage":"https://npm.im/closest-number","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/andreruffert.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2016-07-06T14:15:51.000Z","updated_at":"2025-03-17T17:31:16.000Z","dependencies_parsed_at":"2023-02-18T04:00:44.574Z","dependency_job_id":null,"html_url":"https://github.com/andreruffert/closest-number","commit_stats":{"total_commits":32,"total_committers":4,"mean_commits":8.0,"dds":0.625,"last_synced_commit":"bfb05dde31a8952f908bdd630199a3c705037a34"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreruffert%2Fclosest-number","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreruffert%2Fclosest-number/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreruffert%2Fclosest-number/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreruffert%2Fclosest-number/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreruffert","download_url":"https://codeload.github.com/andreruffert/closest-number/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249139449,"owners_count":21219079,"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":["array","closest","closest-number","number"],"created_at":"2024-10-01T14:36:51.773Z","updated_at":"2025-04-15T19:36:13.318Z","avatar_url":"https://github.com/andreruffert.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# closest-number\n\n[![CI status](https://github.com/andreruffert/closest-number/workflows/CI/badge.svg)](https://github.com/andreruffert/closest-number/actions?workflow=CI)\n[![npm version](https://img.shields.io/npm/v/closest-number.svg)](https://www.npmjs.com/package/closest-number)\n[![npm](https://img.shields.io/npm/dm/closest-number?logo=npm)](https://www.npmjs.com/package/closest-number)\n\n\u003e Find the closest number out of an array to a specific value\n\n## Install\n\n```console\n$ npm i closest-number\n```\n\n## Usage\n\n```js\nconst closestNumber = require('closest-number');\n\nclosestNumber([10, 20, 30], 12);\n// =\u003e 10\n```\n\n## License\n\nMIT © [André Ruffert](http://andreruffert.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreruffert%2Fclosest-number","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreruffert%2Fclosest-number","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreruffert%2Fclosest-number/lists"}