Skip to content

Latest commit

 

History

History
116 lines (88 loc) · 3.65 KB

README-zh_CN.md

File metadata and controls

116 lines (88 loc) · 3.65 KB

Anymock

基于Anyproxy 的mock 服务.

Build Status Codecov Dependencies DevDependencies

npm package NPM downloads Percentage of issues still open semantic-release

English | 简体中文

起步

安装

npm install @tiandatong/anymock -g

用法

λ anymock init
[AnyProxy Log][2018-11-15 12:35:52]: throttle :10000kb/s
[AnyProxy Log][2018-11-15 12:35:52]: clearing cache file...
[AnyProxy Log][2018-11-15 12:35:52]: ==>>> clearing cache
[AnyProxy Log][2018-11-15 12:35:52]: closing webserver...
[AnyProxy Log][2018-11-15 12:35:52]: Http proxy started on port 8001
[AnyProxy Log][2018-11-15 12:35:52]: Active rule is: a rule to hack response
[{
    "name": "master1",
    "commit": {
        "sha": "51a0a39acfb1d029345e896cca6a6a2c3625816b",
        "url": "https://api.github.com/repos/temberature/anymock/commits/51a0a39acfb1d029345e896cca6a6a2c3625816b"
    }
}]
KISSY.Suggest.callback(
{
    "result": [
        [
            "apple watch4",
            "14770"
        ],
        [
            "apple pencil",
            "12500"
        ]
    ],
    "shop": "apple",
    "tmall": "apple"
}
)
//uncompressed jquery

测试

npm test

开发

git clone https://github.com/temberature/anymock.git
cd anymock
npm install
npm start

基础库

贡献

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

版本化

We use SemVer for versioning. For the versions available, see the tags on this repository.

协议

This project is licensed under the MIT License - see the LICENSE.md file for details

致谢