{"id":24663634,"url":"https://github.com/kwangsing3/ks3-toolkit","last_synced_at":"2026-03-04T11:00:31.647Z","repository":{"id":273319489,"uuid":"919301701","full_name":"kwangsing3/ks3-toolkit","owner":"kwangsing3","description":"Node.js 開發專案生成工具-具備基礎的資料庫、I/O、時間轉換、http method等包裝好的函式。無須安裝僅在開新專案時呼叫即可。","archived":false,"fork":false,"pushed_at":"2026-02-27T14:52:56.000Z","size":166,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-27T19:43:57.208Z","etag":null,"topics":["github-packages","javascript","npm-package","npx","project-generation","startup","toolkit","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/ks3-toolkit/v/latest","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/kwangsing3.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-20T06:24:21.000Z","updated_at":"2026-02-27T14:52:59.000Z","dependencies_parsed_at":"2025-03-21T08:39:23.762Z","dependency_job_id":null,"html_url":"https://github.com/kwangsing3/ks3-toolkit","commit_stats":null,"previous_names":["kwangsing3/ks3-toolkit"],"tags_count":41,"template":false,"template_full_name":null,"purl":"pkg:github/kwangsing3/ks3-toolkit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwangsing3%2Fks3-toolkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwangsing3%2Fks3-toolkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwangsing3%2Fks3-toolkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwangsing3%2Fks3-toolkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kwangsing3","download_url":"https://codeload.github.com/kwangsing3/ks3-toolkit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwangsing3%2Fks3-toolkit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30078397,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T08:01:56.766Z","status":"ssl_error","status_checked_at":"2026-03-04T08:00:42.919Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["github-packages","javascript","npm-package","npx","project-generation","startup","toolkit","typescript"],"created_at":"2025-01-26T05:15:46.109Z","updated_at":"2026-03-04T11:00:31.639Z","avatar_url":"https://github.com/kwangsing3.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ks3-toolkit\n\nNode.js 開發專案生成工具-具備基礎的資料庫、I/O、時間轉換、http method 等包裝好的函示。無須安裝，需要開新專案時呼叫即可。\n\n依照開發語言主體 JS/TS 各自引用不同的程式碼檔案。\n\nNPM:\n[ks3-toolkit (www.npmjs.com)](https://www.npmjs.com/package/ks3-toolkit)\n\nGithub Package:\n[ks3-toolkit (Github Package)](https://github.com/kwangsing3/ks3-toolkit/pkgs/npm/ks3-toolkit)\n\n# Usage\n\n```bash\nnpx ks3-toolkit\n```\n\n```\npackage.json\n|\n|--- src --- index.ts (index.js)\n|        |\n|        |--- toolkit (copy from src/Toolkit)\n|\n|--- Readme.MD\n|--- ...\n|--- ...\n```\n\n![screenshot](docs/1.png)\n\n# Develop\n\n### 添加項目\n\n- 新增更通用的項目，包裝成獨立函式後提交。\n\n### 修改項目\n\n- 較多為後續的重構或因版本變化的更新需求而修改。\n\n# 值得注意的事項\n\n- Typescript 有其相對於 Javascript 獨特的定位，在同時被不同的領域(網頁、框架、伺服器)使用時，其所需要符合的架構規範 (ESM)\n  tsconfig.json 常有非常詭異設定方式。\n\n所以此專案使用的概念是:\n\n1. 不需要 tsc 編譯成.js 也能執行，這點包括 npx ，能夠使用 node 直接運行。\n2. 當需要編譯出.js 時，註解 tsconfig.json 的內容\n\n```json\n...\n   \"noUncheckedSideEffectImports\": true,\n    \"moduleDetection\": \"force\",\n    \"skipLibCheck\": true,\n    //\"allowImportingTsExtensions\": true,\n    //\"noEmit\": true,\n    \"forceConsistentCasingInFileNames\": true\n...\n```\n\n不過在編譯後，原.ts 檔內的引用的項目需要轉換成.js，想當然整段執行過程 vsCode 都會是引用不到檔案的。\n\n3. 此專案這樣設定的優點是在開發階段都不再需要等檔案編譯完就能直接執行，斷點也是能正常生效的。\n\n## 所以一開始就要決定好自己的專案是否需要編譯成 JS\n\n因為此專案需要上傳到 NPM，所以還是需要特別編譯過 (本身作為 node_modules 的應用方式不支援直接執行.ts)。\n\n- 此專案需要編譯成 JS\n- 用此專案生成出來的專案不需要編譯成 JS 就能執行\n\n所以兩邊的 tsconfig.json 不同，但可以各自取用想要的項目。\n\n##\n\n```bash\ngit clone https://github.com/kwangsing3/ks3-toolkit\n\nnpm install\n```\n\n# Version\n\n- 版本藉由帶 tag 的提交進行工作流發佈。\n\n\n# Extra\n\n```json\n{\n    \"compilerOptions\": {\n        \"target\": \"ES2022\",\n        \"module\": \"Node16\",\n        \"moduleResolution\": \"Node16\",\n        \"outDir\": \"./build\",\n        \"rootDir\": \"./src\",\n        \"strict\": true,\n        \"esModuleInterop\": true,\n        \"skipLibCheck\": true,\n        \"sourceMap\": true,\n        \"forceConsistentCasingInFileNames\": true\n    },\n    \"include\": [\n        \"src/**/*\"\n    ],\n    \"exclude\": [\n        \"node_modules\"\n    ]\n}\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkwangsing3%2Fks3-toolkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkwangsing3%2Fks3-toolkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkwangsing3%2Fks3-toolkit/lists"}