{"id":15637496,"url":"https://github.com/drawcall/ppo","last_synced_at":"2025-07-08T10:11:48.150Z","repository":{"id":47674729,"uuid":"102321815","full_name":"drawcall/ppo","owner":"drawcall","description":"ppo is a super small and useful utils library for JavaScript 🐝🐜","archived":false,"fork":false,"pushed_at":"2024-07-25T14:26:02.000Z","size":207,"stargazers_count":106,"open_issues_count":0,"forks_count":12,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-06-15T20:50:14.306Z","etag":null,"topics":["3kb","javascript-utility","tool","utils"],"latest_commit_sha":null,"homepage":"https://drawcall.github.io/ppo/","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/drawcall.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-04T05:25:55.000Z","updated_at":"2025-05-07T09:02:43.000Z","dependencies_parsed_at":"2024-07-25T16:28:13.683Z","dependency_job_id":"49e017fa-5161-498c-bbc8-82fb15a56259","html_url":"https://github.com/drawcall/ppo","commit_stats":{"total_commits":57,"total_committers":3,"mean_commits":19.0,"dds":0.543859649122807,"last_synced_commit":"30be5e02845a1168f000e5b3079df66c7f880d3b"},"previous_names":["a-jie/ppo"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/drawcall/ppo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drawcall%2Fppo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drawcall%2Fppo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drawcall%2Fppo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drawcall%2Fppo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drawcall","download_url":"https://codeload.github.com/drawcall/ppo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drawcall%2Fppo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264248024,"owners_count":23579060,"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":["3kb","javascript-utility","tool","utils"],"created_at":"2024-10-03T11:11:54.460Z","updated_at":"2025-07-08T10:11:48.127Z","avatar_url":"https://github.com/drawcall.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![logo](https://drawcall.github.io/ppo/docs/imgs/logo2.png)\n\n## Overview\n\nEvery frontend developer has written his own utils library, and we often write methods that are easily forgotten and highly used. [ppo](https://drawcall.github.io/ppo/) is a super small and useful utils library for JavaScript. It and [lodash](https://github.com/lodash/lodash) [underscore](https://github.com/jashkenas/underscore) [es-toolkit](https://github.com/toss/es-toolkit) almost no coupling.\nI sorted out the most frequently used function functions in everyday development. These functions are almost ubiquitous in your development, and they are not found in lodash underscore.\n\nMost of the code comes from the [stackoverflow](https://stackoverflow.com/) site in the high score answer, here to pay tribute to the original author.\n\nppo little poor, gzip less than **3k**, so a library you can use it anytime, anywhere without worrying about anything.\n\n## Documentation\n\n#### View the document please visit [https://drawcall.github.io/ppo/](https://drawcall.github.io/ppo/)\n\n## Installation\n\n#### Install using npm\n\n```shell\nnpm install ppo --save\n\n...\nimport ppo from 'ppo';\n```\n\n#### Include in html\n\n```html\n\u003cscript type=\"text/javascript\" src=\"js/ppo.min.js\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\n```javascript\nimport ppo from \"ppo\";\n\nconst username = ppo.getCookie(\"username\");\n\nif (ppo.isIOS()) console.log(\"this is ios\");\n\nppo.loadjs('http://x.com/a.js', callback);\n\nppo.getUrlParam('a' ,'http://xxx.com?a=3\u0026b=sd23s');\n\nconst id = ppo.setTimesout(word =\u003e { \n    console.log(word); \n    console.log(this);  // log {index: 3 ,times: 8, over: false}  \n}, 1000/20, 8, 'helloworld')\n```\n\n## Why ppo?\n\nWhen you use react, vue, angular often need to write a lot of utils method. But lodash and underscore these libraries are not omnipotent. So you have to find a lot of tool library. Use ppo, you can solve the daily development of many small problems. Simple and compact!\n\n## Download\n\n- [ppo.js](https://raw.githubusercontent.com/drawcall/ppo/master/ppo.js)\n- [ppo.min.js](https://raw.githubusercontent.com/drawcall/ppo/master/ppo.min.js)\n\n## License\n\nppo is released under the MIT License. http://www.opensource.org/licenses/mit-license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrawcall%2Fppo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrawcall%2Fppo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrawcall%2Fppo/lists"}