{"id":17147995,"url":"https://github.com/zsh2401/tdscore","last_synced_at":"2026-01-23T14:44:56.167Z","repository":{"id":105937159,"uuid":"343978329","full_name":"zsh2401/tdscore","owner":"zsh2401","description":"Data Structure \u0026 Algorithms implements with pure TypeScript for any JavaScript runtime.✨","archived":false,"fork":false,"pushed_at":"2022-05-17T06:18:14.000Z","size":1596,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-29T12:00:00.669Z","etag":null,"topics":["data-structures","data-structures-and-algorithms","javascript","mathematics","nodejs","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zsh2401.png","metadata":{"files":{"readme":"README-en-US.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":"2021-03-03T02:34:53.000Z","updated_at":"2025-09-23T12:31:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"542cd32d-f702-4489-a3e3-c235112da175","html_url":"https://github.com/zsh2401/tdscore","commit_stats":{"total_commits":240,"total_committers":1,"mean_commits":240.0,"dds":0.0,"last_synced_commit":"a8692bcac573af2faa02b4f412eb5e8021ad1b40"},"previous_names":[],"tags_count":45,"template":false,"template_full_name":null,"purl":"pkg:github/zsh2401/tdscore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsh2401%2Ftdscore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsh2401%2Ftdscore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsh2401%2Ftdscore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsh2401%2Ftdscore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zsh2401","download_url":"https://codeload.github.com/zsh2401/tdscore/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsh2401%2Ftdscore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28694457,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T14:15:13.573Z","status":"ssl_error","status_checked_at":"2026-01-23T14:09:05.534Z","response_time":59,"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":["data-structures","data-structures-and-algorithms","javascript","mathematics","nodejs","typescript"],"created_at":"2024-10-14T21:26:49.801Z","updated_at":"2026-01-23T14:44:56.144Z","avatar_url":"https://github.com/zsh2401.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n\u003cdiv align=\"center\"\u003e\n\n# Warning: this library is stll developing, do not use this under production env.\n\n![](./icon.png)\n\n# 😊 [TDSCore](http://ds.zsh2401.top)\n\nEnglish | [中文](./README.md)\n\n```sh\nnpm i tdscore\n```\n\nData Structure, Algorithms and Mathmatics code written by 100% TypeScript✨\n\n\n[![Test](https://github.com/zsh2401/tdscore/actions/workflows/test.yml/badge.svg)](https://github.com/zsh2401/tdscore/actions/workflows/test.yml)\n[![Publish](https://github.com/zsh2401/tdscore/actions/workflows/publish.yml/badge.svg)](https://github.com/zsh2401/tdscore/actions/workflows/publish.yml)\n![](https://img.shields.io/github/languages/top/zsh2401/tdscore)\n[![](https://img.shields.io/codecov/c/github/zsh2401/tdscore)](https://app.codecov.io/gh/zsh2401/tdscore)\n[![dependencies Status](https://status.david-dm.org/gh/zsh2401/tdscore.svg)](https://david-dm.org/zsh2401/tdscore)\n\n[![NPM version](https://img.shields.io/npm/v/tdscore.svg)](https://www.npmjs.com/package/tdscore)\n![](https://badgen.net/npm/dy/tdscore)\n![](https://img.shields.io/bundlephobia/minzip/tdscore)\n\u003c/div\u003e\n\n# Features\n* Readable: Designed for learning.🌌\n* Run everywhere: using only ES5 syntaxes.\n* Small: Minified and gzipped only 22.4KiB（v0.1.26)。\n* Can be compiled to binary.see [tdscore-app-template](https://github.com/zsh2401/tdscore-app-template)\n\n# Install\n```sh\nnpm install tdscore --save\n```\nBrowser\n```html\n\u003csrcipt src=\"//cdn.jsdelivr.net/npm/tdscore/dist/tdscore.min.js\"\u003e\u003c/script\u003e\n```\n\n# Usage🎉\n```typescript\nimport { HashMap } from \"tdscore\"\n\nlet hashMap = new HashMap\u003cstring,number\u003e();\n\nhashMap.mapPut(\"a\",1);\nconsole.log(hashMap.mapGet(\"a\")); // 1\n```\nTDSCore can be also imported with following ways：\n* Global Variable `window.tdscore`\n* CommonJS `require(\"tdscore\")`\n\nBTW, you can try TDSCore without configuring anything with RunKit.\n\n[RunKit for TDSCore](https://npm.runkit.com/tdscore)\n\n# Document 🍕\n[**View online document in official website**](http://ds.zsh2401.top)\n\n# Join development🤝\nYou can [view code online with github1s](https://github1s.com/zsh2401/tdscore/)\n\n## Clone \u0026 Checkout\n```sh\ngit clone https://github.com/zsh2401/tdscore.git\ncd tdscore\ngit fetch origin dev\ngit checkout dev\n```\n## Install dependencies\n```sh\nyarn\n```\n## Build \u0026 Test\n```sh\n# UMD Bundle file.\nyarn build:dist \n\n# ES6\nyarn build:es \n\n# ES5\nyarn build:lib \n\n# All above\nyarn build\n```\n### Unit Test\n```sh\nyarn test\n```\n\nNotice:\n* Please write your code at dev branch.\n* Pull requests are always welcomed.\n\n# Contributors\n\n\u003ca href=\"https://github.com/zsh2401/tdscore/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=zsh2401/tdscore\" /\u003e\n\u003c/a\u003e\n\n# License\nTDSCore is licensed under [Mulan PSL v2](https://opensource.org/licenses/MulanPSL-2.0).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzsh2401%2Ftdscore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzsh2401%2Ftdscore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzsh2401%2Ftdscore/lists"}