{"id":13789830,"url":"https://github.com/chameleon-team/chameleon-api","last_synced_at":"2025-05-12T07:31:06.645Z","repository":{"id":34208698,"uuid":"166401998","full_name":"chameleon-team/chameleon-api","owner":"chameleon-team","description":"chameleon 接口库","archived":false,"fork":false,"pushed_at":"2022-02-13T05:23:30.000Z","size":506,"stargazers_count":15,"open_issues_count":13,"forks_count":15,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-27T14:39:26.794Z","etag":null,"topics":["chameleon","cml","miniprogram","mobile","mvvm"],"latest_commit_sha":null,"homepage":"https://CMLJS.org","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chameleon-team.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-18T12:31:18.000Z","updated_at":"2021-05-19T05:12:08.000Z","dependencies_parsed_at":"2022-07-24T18:02:23.898Z","dependency_job_id":null,"html_url":"https://github.com/chameleon-team/chameleon-api","commit_stats":null,"previous_names":["beatles-chameleon/chameleon-api"],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chameleon-team%2Fchameleon-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chameleon-team%2Fchameleon-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chameleon-team%2Fchameleon-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chameleon-team%2Fchameleon-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chameleon-team","download_url":"https://codeload.github.com/chameleon-team/chameleon-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253383341,"owners_count":21899923,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["chameleon","cml","miniprogram","mobile","mvvm"],"created_at":"2024-08-03T22:00:33.616Z","updated_at":"2025-05-12T07:31:06.290Z","avatar_url":"https://github.com/chameleon-team.png","language":"JavaScript","funding_links":[],"categories":["目录"],"sub_categories":["Chameleon官方仓库"],"readme":"# chameleon-api  [![version](https://img.shields.io/npm/v/chameleon-tool.svg?style=flat)](https://www.npmjs.com/package/chameleon-api) [![Build Status](https://travis-ci.org/beatles-chameleon/chameleon-api.svg?branch=master)](https://travis-ci.org/beatles-chameleon/chameleon-api)\n\n# 说明\n本仓库为chameleon的api的相关代码，chameleon 支持大量基础API，对外提供统一的接口，以模块的方式引入chameleon-api进行使用。\n接口查看及扩展等请见文档： https://beatles-chameleon.github.io/doc/api/api.html\n\n\n例如:\n``` javascript\nimport cml from 'chameleon-api'\n\ncml.showToast({\n  message: 'Hello world!',\n  duration: 1000\n})\n```\n\n## 分支说明  \n分支对应版本号  例如1.0.8-alpha.4  对应版本外网1.0.8-alpha.4  内网 3.0.8-alpha.4\n\n## 如何开发\n结合cml-dome仓库进行开发调试\n\n使用npm link的方式将本地仓库与cml-demo依赖建立链接\n\n实现cml-demo依赖本地chameleon-api进行开发\n\n## 单元测试与覆盖率测试\n```\nnpm i \nnpm run test\nnpm run cover\n```\n\n## 发布正式版本:\n\n修改package.json中version\n\nsh publish.sh\n\n## 发布alpha版本:\n\n修改package.json中version\n\nsh publish.alpha.sh","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchameleon-team%2Fchameleon-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchameleon-team%2Fchameleon-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchameleon-team%2Fchameleon-api/lists"}