😊 TDSCore
English | 中文
npm i tdscore
Data Structure, Algorithms and Mathmatics code written by 100% TypeScript✨
- Readable: Designed for learning.🌌
- Run everywhere: using only ES5 syntaxes.
- Small: Minified and gzipped only 22.4KiB(v0.1.26)。
- Can be compiled to binary.see tdscore-app-template
npm install tdscore --save
Browser
<srcipt src="//cdn.jsdelivr.net/npm/tdscore/dist/tdscore.min.js"></script>
import { HashMap } from "tdscore"
let hashMap = new HashMap<string,number>();
hashMap.mapPut("a",1);
console.log(hashMap.mapGet("a")); // 1
TDSCore can be also imported with following ways:
- Global Variable
window.tdscore
- CommonJS
require("tdscore")
BTW, you can try TDSCore without configuring anything with RunKit.
View online document in official website
You can view code online with github1s
git clone https://github.com/zsh2401/tdscore.git
cd tdscore
git fetch origin dev
git checkout dev
yarn
# UMD Bundle file.
yarn build:dist
# ES6
yarn build:es
# ES5
yarn build:lib
# All above
yarn build
yarn test
Notice:
- Please write your code at dev branch.
- Pull requests are always welcomed.
TDSCore is licensed under Mulan PSL v2.