{"id":16299734,"url":"https://github.com/koji/ichigyou","last_synced_at":"2026-02-05T00:34:52.414Z","repository":{"id":233184492,"uuid":"783476977","full_name":"koji/ichigyou","owner":"koji","description":"typescript one liners","archived":false,"fork":false,"pushed_at":"2025-10-24T05:54:57.000Z","size":1181,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-03T09:27:15.907Z","etag":null,"topics":["bun","jsr","mintlify","oneliners","tsdoc","typescript","vite","vitest"],"latest_commit_sha":null,"homepage":"https://koji.github.io/ichigyou/index.html","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/koji.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-04-08T01:01:22.000Z","updated_at":"2025-10-24T05:54:38.000Z","dependencies_parsed_at":"2024-04-17T08:29:46.537Z","dependency_job_id":"fe510c18-322e-42fa-8ebf-9fed72b546ea","html_url":"https://github.com/koji/ichigyou","commit_stats":null,"previous_names":["koji/ichigyo","koji/ichigyou"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/koji/ichigyou","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koji%2Fichigyou","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koji%2Fichigyou/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koji%2Fichigyou/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koji%2Fichigyou/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koji","download_url":"https://codeload.github.com/koji/ichigyou/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koji%2Fichigyou/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29103407,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-04T22:44:52.815Z","status":"ssl_error","status_checked_at":"2026-02-04T22:44:16.428Z","response_time":62,"last_error":"SSL_read: 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":["bun","jsr","mintlify","oneliners","tsdoc","typescript","vite","vitest"],"created_at":"2024-10-10T20:49:17.366Z","updated_at":"2026-02-05T00:34:52.390Z","avatar_url":"https://github.com/koji.png","language":"TypeScript","readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/koji/ichigyou/assets/474225/41f6b766-ce0f-432a-9d0e-49e459a1b1be\" width=\"500\" /\u003e\n  \n  \u003ch1\u003eichigyou (一行 いちぎょう)\u003c/h1\u003e\n  \n  \u003cp\u003e\u003cstrong\u003eElegant one-liner utility functions for TypeScript/JavaScript\u003c/strong\u003e\u003c/p\u003e\n  \n  \u003cp\u003e\n    \u003ca href=\"https://www.npmjs.com/package/ichigyou\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/ichigyou.svg\" alt=\"npm version\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/koji/ichigyou/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/ichigyou.svg\" alt=\"license\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://koji.github.io/ichigyou/index.html\"\u003e\u003cimg src=\"https://img.shields.io/badge/docs-TSDoc-blue.svg\" alt=\"documentation\" /\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n---\n\n## ✨ Why ichigyou?\n\n**ichigyou** (一行 = \"one line\" in Japanese) is a carefully curated collection of **54+ concise, battle-tested utility functions** written as elegant TypeScript one-liners. Stop reinventing the wheel—use functions that are:\n\n- ⚡ **Zero dependencies** - Lightweight and tree-shakeable\n- 🎯 **Type-safe** - Full TypeScript support with comprehensive TSDoc\n- 🧪 **Tested** - Each function is thoroughly tested\n- 📦 **Modular** - Import only what you need\n- 🚀 **Production-ready** - Used in real-world applications\n\n## 📚 Function Categories\n\n| Category | Functions | Examples |\n|----------|-----------|----------|\n| **String** | 18 functions | `isValidEmail`, `toTitleCase`, `isPalindrome`, `countWords` |\n| **Array** | 13 functions | `removeDuplicated`, `intersection`, `minMax`, `isSubset` |\n| **Number** | 23 functions | `isPrime`, `fibonacci`, `gcd`, `median`, `factorial` |\n| **Object** | Utilities | Deep merge, flatten, and more |\n| **Other** | Helpers | Date, validation, and misc utilities |\n\n## 🚀 Quick Start\n\n### Installation\n\n```bash\n# npm\nnpm i ichigyou\n\n# yarn\nyarn add ichigyou\n\n# pnpm\npnpm i ichigyou\n\n# bun\nbun install ichigyou\n```\n\n### Usage Examples\n\n```typescript\nimport { \n  isValidEmail, \n  removeDuplicated, \n  isPrime,\n  fibonacci \n} from 'ichigyou'\n\n// String utilities\nisValidEmail('user@example.com') // true\ntoTitleCase('hello world') // 'Hello World'\n\n// Array utilities\nremoveDuplicated([1, 2, 2, 3, 3, 4]) // [1, 2, 3, 4]\nintersection([1, 2, 3], [2, 3, 4]) // [2, 3]\n\n// Number utilities\nisPrime(17) // true\nfibonacciMemo(10) // 55\ngcd(48, 18) // 6\nmedian([1, 2, 3, 4, 5]) // 3\n```\n\n## 🎯 Popular Functions\n\n### String Operations\n```typescript\nisValidEmail(email: string): boolean\nisValidURL(url: string): boolean\ntoTitleCase(str: string): string\nisPalindrome(str: string): boolean\nremoveVowels(str: string): string\nisAnagram(str1: string, str2: string): boolean\n```\n\n### Array Manipulation\n```typescript\nremoveDuplicated\u003cT\u003e(arr: T[]): T[]\nintersection\u003cT\u003e(arr1: T[], arr2: T[]): T[] | null\nminMax(arr: number[]): { min: number, max: number }\nhasUniqueValues\u003cT\u003e(arr: T[]): boolean\nisSubset\u003cT\u003e(arr1: T[], arr2: T[]): boolean\n```\n\n### Mathematical Functions\n```typescript\nisPrime(num: number): boolean\nfibonacciMemo(n: number): number\ngcd(num1: number, num2: number): number\nlcm(num1: number, num2: number): number\nfactorial(num: number): number\nmedian(arr: number[]): number\nstandardDeviation(arr: number[]): number\n```\n\n## 📖 Documentation\n\nFull API documentation with detailed examples is available at:  \n👉 **[https://koji.github.io/ichigyou/index.html](https://koji.github.io/ichigyou/index.html)**  \n👉 **[mintlify document](https://kk-83bff226.mintlify.app/)**\n\n## 🤝 Contributing\n\nContributions are welcome! If you have a useful one-liner function to add:\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-function`)\n3. Add your function with tests\n4. Commit your changes (`git commit -m 'Add amazing function'`)\n5. Push to the branch (`git push origin feature/amazing-function`)\n6. Open a Pull Request\n\n## 📝 License\n\nMIT © [Koji Kanao](https://github.com/koji)\n\n## ⭐ Show Your Support\n\nIf **ichigyou** saved you time and keystrokes, give it a star! ⭐\n\n---\n\n### Sample\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoji%2Fichigyou","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoji%2Fichigyou","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoji%2Fichigyou/lists"}