# maishu-chitu

> 采用TypeScript编写的轻量级单页面类库，帮助开发人员编写易维护的大规模项目。采用面向对象，事件驱动的编程模式。

Latest version **3.43.0** (published 2022-03-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install maishu-chitu
pnpm add maishu-chitu
yarn add maishu-chitu
bun add maishu-chitu
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.43.0 |
| Published | 2022-03-26 |
| First published | 2017-10-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 23 |
| Author | mai.shu |
| Maintainers | ansiboy |

## Links

- npm: https://www.npmjs.com/package/maishu-chitu
- Repository: https://github.com/ansiboy/chitu
- Homepage: https://github.com/ansiboy/chitu#readme
- Issues: https://github.com/ansiboy/chitu/issues
- npm.io page: https://npm.io/package/maishu-chitu

## Recent versions

- 3.43.0 (latest) — 2022-03-26
- 3.41.0 — 2021-05-13
- 3.40.0 — 2021-04-30
- 3.31.0 — 2021-04-08
- 3.30.0 — 2021-04-01
- 3.28.0 — 2020-12-18
- 3.27.0 — 2020-01-03
- 3.26.0 — 2020-01-02
- 3.24.0 — 2020-01-02
- 3.22.0 — 2020-01-02
- 3.20.0 — 2020-01-02
- 3.13.0 — 2019-11-06
- 3.12.0 — 2019-10-12
- 3.11.0 — 2019-08-11
- 3.10.0 — 2019-08-11
- … 89 more at https://npm.io/package/maishu-chitu/versions

## README

# CHITU

## 简介

采用TypeScript编写的轻量级单页面类库，帮助开发人员编写易维护的大规模项目。采用面向对象，事件驱动的编程模式。

它的关注点在于页面的加载，切换，以及页面间数据的交互。

## 设计理念

* 简单易用

作者在开发这个 ChiTu 的时候，简单是他所坚持的原则之一。这里说的简单并非简陋，而是功能性的单一，它只专注于页面的加载。

* 易于扩展

ChiTu 框架采用面向对象，事件驱件的编程模式，各个模块间解藕合理，整个类库很容易进行扩展。

* 兼容性好

Chitu 可以很方便和其它第三方框架配合使用，例如：REACT, VUE

## 如何使用

**常规引用**

```html
<script type="text/javascript" src="js/chitu.js"></script>
```

**使用 requirejs 加载**

```js
requirejs(['js/chitu.js'])
```

## 下载

<!-- 
## 案例 TODO
-->

## 项目生成

本项目是使用 Grunt 来生成项目，所以需要安装 Grunt 。

* 下载源码
* 安装 Grunt
* 运行 npm install 命令，安装所需要的 grunt 插件
* 运行 grunt 命令生成项目

## [中文文档](https://ansiboy.github.io/ChiTu/)

---
_Source: https://npm.io/package/maishu-chitu · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
