Skip to content

Latest commit

 

History

History
110 lines (82 loc) · 2.7 KB

README-en-US.md

File metadata and controls

110 lines (82 loc) · 2.7 KB

Warning: this library is stll developing, do not use this under production env.

😊 TDSCore

English | 中文

npm i tdscore

Data Structure, Algorithms and Mathmatics code written by 100% TypeScript✨

Test Publish dependencies Status

NPM version

Features

  • 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

Install

npm install tdscore --save

Browser

<srcipt src="//cdn.jsdelivr.net/npm/tdscore/dist/tdscore.min.js"></script>

Usage🎉

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.

RunKit for TDSCore

Document 🍕

View online document in official website

Join development🤝

You can view code online with github1s

Clone & Checkout

git clone https://github.com/zsh2401/tdscore.git
cd tdscore
git fetch origin dev
git checkout dev

Install dependencies

yarn

Build & Test

# UMD Bundle file.
yarn build:dist 

# ES6
yarn build:es 

# ES5
yarn build:lib 

# All above
yarn build

Unit Test

yarn test

Notice:

  • Please write your code at dev branch.
  • Pull requests are always welcomed.

Contributors

License

TDSCore is licensed under Mulan PSL v2.