{"id":16124271,"url":"https://github.com/jongacnik/linmap","last_synced_at":"2025-04-06T12:49:02.526Z","repository":{"id":36889782,"uuid":"41196778","full_name":"jongacnik/linmap","owner":"jongacnik","description":"Linear map","archived":false,"fork":false,"pushed_at":"2015-08-22T07:52:29.000Z","size":116,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T22:03:43.802Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jongacnik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-22T07:47:35.000Z","updated_at":"2019-05-22T21:36:33.000Z","dependencies_parsed_at":"2022-09-11T23:40:26.303Z","dependency_job_id":null,"html_url":"https://github.com/jongacnik/linmap","commit_stats":null,"previous_names":["amongiants/linmap"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongacnik%2Flinmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongacnik%2Flinmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongacnik%2Flinmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongacnik%2Flinmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jongacnik","download_url":"https://codeload.github.com/jongacnik/linmap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247485251,"owners_count":20946398,"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-09T21:20:22.241Z","updated_at":"2025-04-06T12:49:02.504Z","avatar_url":"https://github.com/jongacnik.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# linmap\n\nLinear map function for node and browser (browserify or similar)\n\n## Usage\n\t\n\tvar map = require('linmap')\n\n\t// map(min1, max1, min2, max2, input)\n\tvar result = map(0, 100, 0, 10, 50)\n\t// =\u003e 5\n\t\n## Example\n\nMaps the mouseX position from 0 to 10\n\n\twindow.addEventListener('mousemove', function (e) {\n\t\tvar result = map(0, window.innerWidth, 0, 10, e.pageX)\n\t\tconsole.log(result)\n\t})","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjongacnik%2Flinmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjongacnik%2Flinmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjongacnik%2Flinmap/lists"}