{"id":18033370,"url":"https://github.com/defuj/def-helper","last_synced_at":"2026-01-21T20:39:33.619Z","repository":{"id":61517812,"uuid":"550576696","full_name":"defuj/def-helper","owner":"defuj","description":"A collection of functions and methods to make it easier for you to create applications.","archived":false,"fork":false,"pushed_at":"2022-10-20T05:54:06.000Z","size":26,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T05:11:17.925Z","etag":null,"topics":["functions","hacktoberfest","hacktoberfest2022","javascript","methods","react","typescript","vuejs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/def-helper","language":"TypeScript","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/defuj.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":"2022-10-13T01:54:40.000Z","updated_at":"2022-10-13T06:13:40.000Z","dependencies_parsed_at":"2022-10-20T11:30:21.053Z","dependency_job_id":null,"html_url":"https://github.com/defuj/def-helper","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/defuj/def-helper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defuj%2Fdef-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defuj%2Fdef-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defuj%2Fdef-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defuj%2Fdef-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/defuj","download_url":"https://codeload.github.com/defuj/def-helper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defuj%2Fdef-helper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28642220,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T18:04:35.752Z","status":"ssl_error","status_checked_at":"2026-01-21T18:03:55.054Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["functions","hacktoberfest","hacktoberfest2022","javascript","methods","react","typescript","vuejs"],"created_at":"2024-10-30T11:06:34.854Z","updated_at":"2026-01-21T20:39:33.600Z","avatar_url":"https://github.com/defuj.png","language":"TypeScript","readme":"# def-helper\n\n\u003e A collection of functions and methods to make it easier for you to create applications.\n\n[![NPM](https://img.shields.io/npm/v/def-helper.svg)](https://www.npmjs.com/package/def-helper) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Install\n\n```bash\nnpm install --save def-helper\n```\n\n## Usage\n\n```tsx\nimport {\n  slugify,\n  validateEmail,\n  validatePhone,\n  getNumberInFirstString,\n  validateURL,\n  imageUrlToBase64,\n  getNumber,\n  compareObject\n} from 'def-helper'\n\nconst slug = slugify('Hello World')\n// result will be \"hello-world\"\n\nconst email = validateEmail('user@mail.com')\n// result will be true\n\nconst phone = validatePhone('08123456789')\n// result will be true\n\nconst number = getNumberInFirstString('17676-Hello 123 World')\n// result will be 17676\n\nconst url = validateURL('https://google.com')\n// result will be true\n\n// imageUrlToBase64([url image -\u003e convert to base64],[url image if url image target is error], (result base64) =\u003e {\n//\n// })\nconst base64 = imageUrlToBase64(\n  'https://google.com/logo.png',\n  'https://img.kpopmap.com/2018/07/mbc-rebel.jpg',\n  (base64) =\u003e {\n    // result will be base64 string\n  }\n)\n\nconst number = getNumber('17676-Hello 123 World')\n// result will be 17676123\n\nconst compare = compareObject({ a: 1, b: 2 }, { a: 1, b: 2 })\n// result will be true\nconst compare = compareObject({ a: 1, b: 2 }, { a: 1, b: 3 })\n// result will be false\n\n```\n\n## License\n\nMIT © [defuj](https://github.com/defuj)\n\n## Contributor\n\nThanks to all amazing contributors\n\u003cbr\u003e\n\u003cbr\u003e\n\u003ca href=\"https://github.com/defuj/def-helper/graphs/contributors\"\u003e\n\u003cimg src=\"https://contrib.rocks/image?repo=defuj/def-helper\" /\u003e\n\u003c/a\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefuj%2Fdef-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefuj%2Fdef-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefuj%2Fdef-helper/lists"}