{"id":26286370,"url":"https://github.com/arjenhill/ppo","last_synced_at":"2025-05-07T16:23:11.539Z","repository":{"id":57329235,"uuid":"124005848","full_name":"arjenhill/ppo","owner":"arjenhill","description":"A super small and useful utils library for JavaScript.","archived":false,"fork":false,"pushed_at":"2020-08-11T06:07:28.000Z","size":2740,"stargazers_count":16,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-28T09:48:38.637Z","etag":null,"topics":["javascript","javascript-tools"],"latest_commit_sha":null,"homepage":"https://github.ahthw.com/ppo/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arjenhill.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":"2018-03-06T02:03:16.000Z","updated_at":"2022-08-30T08:05:29.000Z","dependencies_parsed_at":"2022-09-11T08:40:08.484Z","dependency_job_id":null,"html_url":"https://github.com/arjenhill/ppo","commit_stats":null,"previous_names":["climbwood/ppo","halldwang/ppo-cli","arjenhill/ppo"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjenhill%2Fppo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjenhill%2Fppo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjenhill%2Fppo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arjenhill%2Fppo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arjenhill","download_url":"https://codeload.github.com/arjenhill/ppo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252913370,"owners_count":21824158,"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":["javascript","javascript-tools"],"created_at":"2025-03-14T20:21:58.239Z","updated_at":"2025-05-07T16:23:11.502Z","avatar_url":"https://github.com/arjenhill.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Overview\n\n![npm version](https://img.shields.io/npm/v/ppo-cli.svg) ![gzip size](https://img.shields.io/bundlephobia/minzip/ppo-cli.svg?label=gzip%20size) ![monthly npm installs](https://img.shields.io/npm/dm/ppo-cli.svg?label=npm%20downloads) ![image](https://img.shields.io/badge/license-Apache2.0-blue.svg)\n\n\u003e A utility belt library for modern JavaScript.\n\nEvery frontend developer has written his own utils library, and we often write methods that are easily forgotten and highly used. [ppo](https://github.com/jiayi2/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) [lazy.js](https://github.com/dtao/lazy.js) almost no coupling.\n\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 6k, so a library you can use it anytime, anywhere without worrying about anything.\n\nSee the [latest docs/documentation](https://github.ahthw.com/ppo/) for a full API reference.\n\n## Recommendation\n\nLatest Branch [bbo-next](https://github.com/halldwang/ppo/tree/bbo-next)\n\n## Installation\n\n#### Install using npm\n\n[![anix](https://nodei.co/npm/ppo-cli.png)](https://npmjs.org/package/ppo-cli)\n\n```\nnpm install ppo-cli --save\n...\nimport ppo from 'ppo-cli';\n```\n\n### Include in html\n\nThis function can only be used in previous version. (version \u003c= 1.3.22)\nMore Change [branch](https://github.com/halldwang/ppo-cli/tree/master) or Tags [1.3.19](https://github.com/halldwang/ppo-cli/tree/1.3.19) [1.3.20](https://github.com/halldwang/ppo-cli/tree/1.3.20) [1.3.22](https://github.com/halldwang/ppo-cli/tree/1.3.22)\n\n```\n\u003cscript type=\"text/javascript\" src=\"js/ppo.min.js\"\u003e\u003c/script\u003e\n```\n\n#### CDN\n\n```\n//mat1.gtimg.com/www/js/libs/ppo.1.3.22.min.js\n```\n\n## Usage\n\n```\nvar username = ppo.getCookie('username');\n\nppo.log('hello world!');\n\nvar id = ppo.setTimesout(function(word){\n    console.log(word);\n    console.log(this);  // log {index: 3 ,times: 8, over: false}\n}, 1000/20, 8, 'helloworld')\n```\n\n## Why?\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## License\n\nTrine is ISC licensed. See the [LICENSE](https://github.com/halldwang/ppo-cli/blob/beta/LICENSE) document for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farjenhill%2Fppo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farjenhill%2Fppo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farjenhill%2Fppo/lists"}