{"id":20738859,"url":"https://github.com/mucahitdev/mutahit","last_synced_at":"2025-04-24T02:11:07.925Z","repository":{"id":61814114,"uuid":"555308492","full_name":"mucahitdev/mutahit","owner":"mucahitdev","description":"React","archived":false,"fork":false,"pushed_at":"2022-10-21T12:49:27.000Z","size":388,"stargazers_count":19,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-18T04:56:21.230Z","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/mucahitdev.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":"2022-10-21T10:24:46.000Z","updated_at":"2025-03-05T13:23:22.000Z","dependencies_parsed_at":"2022-10-21T17:30:36.385Z","dependency_job_id":null,"html_url":"https://github.com/mucahitdev/mutahit","commit_stats":null,"previous_names":["mucahitkok/mutahit"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mucahitdev%2Fmutahit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mucahitdev%2Fmutahit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mucahitdev%2Fmutahit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mucahitdev%2Fmutahit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mucahitdev","download_url":"https://codeload.github.com/mucahitdev/mutahit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250546086,"owners_count":21448260,"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-11-17T06:21:09.699Z","updated_at":"2025-04-24T02:11:07.908Z","avatar_url":"https://github.com/mucahitdev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mutahit\n\n\u003e React Custom Hooks\n\n[![NPM](https://img.shields.io/npm/v/mutahit.svg)](https://www.npmjs.com/package/mutahit) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Install\n\n```bash\nnpm i mutahit\n```\n\n## or\n\n```bash\nyarn add mutahit\n```\n\n## Usage\n\n```js\nimport React, { useState } from 'react'\n\nimport { useRandomColor, useNumberWithCommas, useConvertPrice } from 'mutahit'\n\nconst App = () =\u003e {\n  const [color, setRandomColor] = useRandomColor()\n  const [number, setNumber] = useState(0)\n  return (\n    \u003cdiv style={{ backgroundColor: color, height: '100vh' }}\u003e\n      \u003cbutton onClick={setRandomColor}\u003eChange Color\u003c/button\u003e\n\n      \u003cinput\n        type='number'\n        value={number}\n        onChange={(e) =\u003e setNumber(e.target.value)}\n      /\u003e\n      \u003cp\u003e{useNumberWithCommas(number)}\u003c/p\u003e\n\n      \u003cp\u003e{useConvertPrice(number, 'tr')}\u003c/p\u003e\n    \u003c/div\u003e\n  )\n}\n\nexport default App\n```\n\n## Hooks\n\n```js\nconst [color, setRandomColor] = useRandomColor()\ncolor type: string (#000000)\nsetRandomColor type: function (set random color)\n```\n\n```js\nuseNumberWithCommas(number)\nnumber type: number required (100000)\n```\n\n```js\nuseConvertPrice(number, lang)\nnumber type: number required (100000)\nlang type: string optional default: 'en'\n\n```\n\n```\n\n## License\n\nMIT © [mucahitkok](https://github.com/mucahitkok)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmucahitdev%2Fmutahit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmucahitdev%2Fmutahit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmucahitdev%2Fmutahit/lists"}