{"id":15854215,"url":"https://github.com/afeiship/protofill","last_synced_at":"2026-05-17T17:07:22.968Z","repository":{"id":96087820,"uuid":"116076262","full_name":"afeiship/protofill","owner":"afeiship","description":"Enhance native JavaScript prototypes with custom methods safely.","archived":false,"fork":false,"pushed_at":"2023-09-07T02:32:58.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-24T01:25:38.775Z","etag":null,"topics":["enhance","javascript","js","prototype","safely"],"latest_commit_sha":null,"homepage":"","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/afeiship.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2018-01-03T01:33:08.000Z","updated_at":"2023-08-10T01:12:48.000Z","dependencies_parsed_at":"2024-10-05T19:41:18.808Z","dependency_job_id":"7bdd2ea8-443f-49ef-85e1-e9a5cef34156","html_url":"https://github.com/afeiship/protofill","commit_stats":null,"previous_names":["afeiship/protofill"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/afeiship/protofill","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fprotofill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fprotofill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fprotofill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fprotofill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/protofill/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fprotofill/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33147340,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"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":["enhance","javascript","js","prototype","safely"],"created_at":"2024-10-05T19:41:09.356Z","updated_at":"2026-05-17T17:07:22.939Z","avatar_url":"https://github.com/afeiship.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# protofill\n\u003e Enhance native JavaScript prototypes with custom methods safely.\n\n[![version][version-image]][version-url]\n[![license][license-image]][license-url]\n[![size][size-image]][size-url]\n[![download][download-image]][download-url]\n\n## installation\n```shell\nnpm install @jswork/protofill\n\n# add types for `src/global.d.ts`\nimport '@jswork/protofill/dist/types';\n```\n\n## usage\n```js\n// just oneline\nimport '@jswork/protofill'\n\n// ------ Array ---- \nconst arr = [1,2,3]\n\n// set/get first: \narr.first = 'a';\narr.first;\n\n// set/get last: \narr.last = 'a';\narr.last;\n\n// filter2tuple\nconst numbers = [1, 2, 3, 4, 5];\nconst result = numbers.filter2tuple((item) =\u003e item \u003e 2);\n// result: [[3, 4, 5], [1, 2, 3, 4, 5]]\n\n// ------ Date ----\nconst date = new Date();\nformat: date.format('YYYY-MM-DD HH:mm:ss');\n```\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/protofill/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/protofill\n[version-url]: https://npmjs.org/package/@jswork/protofill\n\n[license-image]: https://img.shields.io/npm/l/@jswork/protofill\n[license-url]: https://github.com/afeiship/protofill/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/protofill\n[size-url]: https://github.com/afeiship/protofill/blob/master/dist/protofill.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/protofill\n[download-url]: https://www.npmjs.com/package/@jswork/protofill\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fprotofill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Fprotofill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fprotofill/lists"}