{"id":20391089,"url":"https://github.com/compactjs/remap","last_synced_at":"2025-03-05T00:14:40.007Z","repository":{"id":38426981,"uuid":"256703493","full_name":"CompactJS/remap","owner":"CompactJS","description":"Map a value from one range to another","archived":false,"fork":false,"pushed_at":"2023-03-04T12:59:56.000Z","size":2201,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-02T09:36:01.110Z","etag":null,"topics":["javascript","map","range","remap"],"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/CompactJS.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-18T08:25:13.000Z","updated_at":"2021-04-19T10:36:56.000Z","dependencies_parsed_at":"2024-10-24T17:46:02.943Z","dependency_job_id":"de86123e-95a6-40c5-ac75-a3b22d5b5683","html_url":"https://github.com/CompactJS/remap","commit_stats":{"total_commits":13,"total_committers":4,"mean_commits":3.25,"dds":0.6923076923076923,"last_synced_commit":"86ea742ecc89efd2c09e08259c2196504f06dc6f"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CompactJS%2Fremap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CompactJS%2Fremap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CompactJS%2Fremap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CompactJS%2Fremap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CompactJS","download_url":"https://codeload.github.com/CompactJS/remap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241940579,"owners_count":20045883,"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":["javascript","map","range","remap"],"created_at":"2024-11-15T03:28:42.569Z","updated_at":"2025-03-05T00:14:39.969Z","avatar_url":"https://github.com/CompactJS.png","language":"JavaScript","readme":"\u003ch1 align=\"center\"\u003e@compactjs/remap\u003c/h1\u003e\n\u003ch3 align=\"center\"\u003eMap a value from one range to another\u003c/h3\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@compactjs/remap\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Version\" src=\"https://img.shields.io/npm/v/@compactjs/remap.svg\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/CompactJS/remap/blob/main/LICENSE\" target=\"_blank\"\u003e\n    \u003cimg alt=\"License: MIT\" src=\"https://img.shields.io/github/license/compactjs/remap\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  ·\n  \u003ca href=\"https://github.com/CompactJS/remap#readme\"\u003eHomepage\u003c/a\u003e\n  ·\n  \u003ca href=\"https://github.com/CompactJS/remap/issues\"\u003eReport Bug / Request Feature\u003c/a\u003e\n  ·\n\u003c/p\u003e\n\n## Table of Contents\n\n- [Installation](#Install)\n- [Usage](#usage)\n- [Test](#run-tests)\n- [Contact](#contact)\n- [Contributing](#Contributing)\n- [License](#license)\n\n## Install\n\n### NPM:\n\n```sh\nnpm install @compactjs/remap\n```\n\n### CDN:\n\n```html\n\u003cscript src=\"https://unpkg.com/@compactjs/remap/dist/index.umd.js\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\n```typescript\n/**\n * Maps a value from one range to another\n */\nfunction remap(\n  value: number,\n  min: number,\n  max: number,\n  targetMin: number,\n  targetMax: number\n): number;\n```\n\n### As module:\n\n```javascript\nimport { remap } from '@compactjs/remap';\n```\n\n### Example:\n\n```javascript\nremap(0.5, 0, 1, 180, 360); // =\u003e 270\n```\n\n## Run tests\n\n```sh\nnpm run test\n```\n\n## Contact\n\n👤 **Timo Bechtel**\n\n- Website: https://timobechtel.com\n- Twitter: [@TimoBechtel](https://twitter.com/TimoBechtel)\n- GitHub: [@TimoBechtel](https://github.com/TimoBechtel)\n\n## 🤝 Contributing\n\nContributions, issues and feature requests are welcome!\u003cbr /\u003e\n\n1. Check [issues](https://github.com/CompactJS/remap/issues)\n1. Fork the Project\n1. Create your Feature Branch (`git checkout -b feat/AmazingFeature`)\n1. Test your changes `npm run test`\n1. Commit your Changes (`git commit -m 'feat: add amazingFeature'`)\n1. Push to the Branch (`git push origin feat/AmazingFeature`)\n1. Open a Pull Request\n\n### Commit messages\n\nThis project uses semantic-release for automated release versions. So commits in this project follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0-beta.2/) guidelines. I recommend using [commitizen](https://github.com/commitizen/cz-cli) for automated commit messages.\n\n## Show your support\n\nGive a ⭐️ if this project helped you!\n\n## 📝 License\n\nDistributed under the [MIT](https://github.com/CompactJS/remap/blob/main/LICENSE) License.\n\n---\n\n_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompactjs%2Fremap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompactjs%2Fremap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompactjs%2Fremap/lists"}