{"id":17046310,"url":"https://github.com/lafikl/median","last_synced_at":"2025-09-11T23:34:42.776Z","repository":{"id":12475791,"uuid":"15143561","full_name":"lafikl/median","owner":"lafikl","description":"A small module for node and browser to calculate median.","archived":false,"fork":false,"pushed_at":"2013-12-15T11:23:39.000Z","size":464,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T10:03:52.755Z","etag":null,"topics":[],"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/lafikl.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}},"created_at":"2013-12-12T18:06:42.000Z","updated_at":"2023-07-07T23:31:02.000Z","dependencies_parsed_at":"2022-09-26T18:31:25.206Z","dependency_job_id":null,"html_url":"https://github.com/lafikl/median","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lafikl%2Fmedian","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lafikl%2Fmedian/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lafikl%2Fmedian/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lafikl%2Fmedian/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lafikl","download_url":"https://codeload.github.com/lafikl/median/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248589809,"owners_count":21129685,"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-10-14T09:45:53.412Z","updated_at":"2025-04-12T15:32:25.376Z","avatar_url":"https://github.com/lafikl.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Median\n=========\n\nA small module for node and browser to calculate median.\n\n\n## Install\n**NPM**\n```\n$ npm install median\n```\n\nor you can download the repo and use `median.js`\n\n## Usage\n\n**Node.js**\n```js\nvar median = require('median')\nvar arr = [1, 15, 200, 30]\nvar value = median(arr)\n\nconsole.log(\"median value is \" + value)\n```\n \n \n\n\n**Browser**\n```js\nvar arr = [1, 15, 200, 30]\nvar value = window.median(arr)\n\nconsole.log(\"median value is \" + value)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flafikl%2Fmedian","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flafikl%2Fmedian","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flafikl%2Fmedian/lists"}