{"id":26021214,"url":"https://github.com/teclone/utils","last_synced_at":"2025-03-06T08:50:31.297Z","repository":{"id":51305415,"uuid":"174751672","full_name":"teclone/utils","owner":"teclone","description":"collection of utility methods useful for day to day project and library development","archived":false,"fork":false,"pushed_at":"2021-08-14T07:14:56.000Z","size":584,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-13T18:12:22.808Z","etag":null,"topics":["utility-function","utility-library","utils"],"latest_commit_sha":null,"homepage":"","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/teclone.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":"2019-03-09T22:11:31.000Z","updated_at":"2021-08-14T07:14:59.000Z","dependencies_parsed_at":"2022-09-18T08:50:32.647Z","dependency_job_id":null,"html_url":"https://github.com/teclone/utils","commit_stats":null,"previous_names":["harrison-ifeanyichukwu/utils"],"tags_count":68,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teclone%2Futils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teclone%2Futils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teclone%2Futils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teclone%2Futils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teclone","download_url":"https://codeload.github.com/teclone/utils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242179280,"owners_count":20084940,"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":["utility-function","utility-library","utils"],"created_at":"2025-03-06T08:50:30.535Z","updated_at":"2025-03-06T08:50:31.286Z","avatar_url":"https://github.com/teclone.png","language":"TypeScript","readme":"# Utils\n\n[![Build Status](https://travis-ci.org/teclone/utils.svg?branch=master)](https://travis-ci.org/teclone/utils)\n[![Coverage Status](https://coveralls.io/repos/github/teclone/utils/badge.svg?branch=master)](https://coveralls.io/github/teclone/utils?branch=master)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n[![npm version](https://badge.fury.io/js/%40teclone%2Futils.svg)](https://badge.fury.io/js/%40teclone%2Futils)\n![npm](https://img.shields.io/npm/dt/%40teclone%2Futils.svg)\n\nUtils is a collection of utility methods for day to day web application and library development. It is developed for reusability purposes as it is utilized by most of all libraries published by same author.\n\nIf you bumped into this project and find it useful for your project, please don't hesitate to give us a star. Because it is a typescript project, you get excellent auto-completion and type checks.\n\n## Installation\n\n```bash\nnpm install @teclone/utils\n```\n\n## Usage Sample\n\n```typescript\nimport { scopeCallback, camelCase, copy, range, expandProperty } from '@teclone/utils';\n\nconsole.log(camelCase('my-string')); //logs myString\nconsole.log(camelCase('my:string', ':')); //logs myString\n\n//copy objects without creating references\nconst myObject = {\n  headers: {\n    contentType: 'text/html',\n  },\n  colors: ['#fff', 'green', '#808080'],\n};\nconst myObjectCopy = copy({}, myObject);\n\n//changing headers does not change the copy\nmyObject.headers.contentType = 'text/css';\nconsole.log(myObjectCopy.headers.contentType); //logs text/html\n\n// expand property into a target object\nconst result = expandProperty({}, 'headers.contentType', 'text/css');\nconsole.log(result.headers.contentType); // logs text/css\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteclone%2Futils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteclone%2Futils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteclone%2Futils/lists"}