{"id":19720752,"url":"https://github.com/ngthucdotcom/react-utilities","last_synced_at":"2026-05-31T23:32:03.339Z","repository":{"id":57347306,"uuid":"462218552","full_name":"ngthucdotcom/react-utilities","owner":"ngthucdotcom","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-14T02:23:47.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-02T03:50:07.754Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/ngthucdotcom.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-02-22T09:09:06.000Z","updated_at":"2022-03-07T08:59:21.000Z","dependencies_parsed_at":"2022-08-28T03:52:54.731Z","dependency_job_id":null,"html_url":"https://github.com/ngthucdotcom/react-utilities","commit_stats":null,"previous_names":["ngthucdotcom/react-utilites"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ngthucdotcom/react-utilities","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngthucdotcom%2Freact-utilities","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngthucdotcom%2Freact-utilities/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngthucdotcom%2Freact-utilities/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngthucdotcom%2Freact-utilities/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ngthucdotcom","download_url":"https://codeload.github.com/ngthucdotcom/react-utilities/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngthucdotcom%2Freact-utilities/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33753923,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11T23:12:23.855Z","updated_at":"2026-05-31T23:32:03.324Z","avatar_url":"https://github.com/ngthucdotcom.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-daily-utilities\r\nDaily utilities for React.js\r\n\r\n## Usage\r\n\r\n### Install package\r\n```\r\n npm i --save-dev react-daily-utilities\r\n```\r\n\r\n### Use package\r\n* Import to component (example with useLogger hook)\r\n```\r\n import {useLogger} from \"react-daily-utilities\";\r\n```\r\n\r\n* Init class/function/component name for every component (default local environment)\r\n```\r\n const logger = useLogger({className: \u003capp-name\u003e});\r\n```\r\n\r\n* Write log with type info | warning | error\r\n```\r\n logger.log_info(data, options);\r\n```\r\n```\r\n logger.log_warn(data, options);\r\n```\r\n```\r\n logger.log_error(data, options);\r\n```\r\n\r\n## Development commands\r\n\r\n```\r\n // watch\r\n yarn start\r\n\r\n // or\r\n npm run start\r\n```\r\n\r\n```\r\n // builds the dist folder\r\n yarn build\r\n\r\n // or\r\n npm run build\r\n```\r\n\r\n## Deployment to NPM\r\n\r\n### Login to correct NPM account\r\n\r\n```\r\nnpm login\r\n```\r\n\r\n### Versioning\r\n\r\nIncrease the version number as per NPM guides [https://docs.npmjs.com/about-semantic-versioning].\r\n\r\n```\r\n// increases the first digit i.e. from 0.5.4 to 1.0.0\r\nnpm version major\r\n\r\n// increases the second digit i.e. from 0.0.3 to 0.1.0\r\nnpm version minor\r\n\r\n// increases the third digit i.e. from 0.0.1 to 0.0.2\r\nnpm version patch\r\n```\r\n\r\n### Deployment\r\n\r\nRun the command and the package should be up.\r\n\r\n```\r\nnpm publish --access public\r\n```\r\n\r\n### Flow deploy\r\n* Build project\r\n* Login (if not login)\r\n* Commit and push\r\n* Set version\r\n* Publish\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngthucdotcom%2Freact-utilities","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fngthucdotcom%2Freact-utilities","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngthucdotcom%2Freact-utilities/lists"}